blob: fcd20b1a40707064caae2dc69cc9679ef8b07295 [file] [log] [blame]
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -08001/*
2 * Copyright (C) 2008 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef _BOOTCHART_H
18#define _BOOTCHART_H
19
20#ifndef BOOTCHART
21# define BOOTCHART 0
22#endif
23
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080024extern int bootchart_init(void);
25extern int bootchart_step(void);
26extern void bootchart_finish(void);
Bo (Andover) Zhang37003732014-07-24 13:11:35 -040027extern long long bootchart_gettime(void);
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080028
Elliott Hughes24627902015-02-04 10:25:09 -080029#define BOOTCHART_POLLING_MS 200 /* polling period in ms */
30#define BOOTCHART_DEFAULT_TIME_SEC (2*60) /* default polling time in seconds */
31#define BOOTCHART_MAX_TIME_SEC (10*60) /* max polling time in seconds */
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080032
33#endif /* _BOOTCHART_H */