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 20#ifndef BOOTCHART 21# define BOOTCHART 0 22#endif 23 24#if BOOTCHART 25 26extern int bootchart_init(void); 27extern int bootchart_step(void); 28extern void bootchart_finish(void); 29 30# define BOOTCHART_POLLING_MS 200 /* polling period in ms */ 31# define BOOTCHART_DEFAULT_TIME_SEC (2*60) /* default polling time in seconds */ 32# define BOOTCHART_MAX_TIME_SEC (10*60) /* max polling time in seconds */ 33 34#endif /* BOOTCHART */ 35 36#endif /* _BOOTCHART_H */ 37