blob: 9ba3c40c2353ea7e8e9a623b85508581d4e8e917 [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
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080020extern int bootchart_init(void);
21extern int bootchart_step(void);
22extern void bootchart_finish(void);
Bo (Andover) Zhang37003732014-07-24 13:11:35 -040023extern long long bootchart_gettime(void);
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080024
Elliott Hughes24627902015-02-04 10:25:09 -080025#define BOOTCHART_POLLING_MS 200 /* polling period in ms */
26#define BOOTCHART_DEFAULT_TIME_SEC (2*60) /* default polling time in seconds */
27#define BOOTCHART_MAX_TIME_SEC (10*60) /* max polling time in seconds */
The Android Open Source Projectdd7bc332009-03-03 19:32:55 -080028
29#endif /* _BOOTCHART_H */