The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 1 | /* |
| 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 Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 20 | extern int bootchart_init(void); |
| 21 | extern int bootchart_step(void); |
| 22 | extern void bootchart_finish(void); |
Bo (Andover) Zhang | 3700373 | 2014-07-24 13:11:35 -0400 | [diff] [blame] | 23 | extern long long bootchart_gettime(void); |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 24 | |
Elliott Hughes | 2462790 | 2015-02-04 10:25:09 -0800 | [diff] [blame] | 25 | #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 Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 28 | |
| 29 | #endif /* _BOOTCHART_H */ |