42 lines
1.0 KiB
C
42 lines
1.0 KiB
C
/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef _TIMING_DEBUG_H
|
|
|
|
/**
|
|
* Init the timings system
|
|
*/
|
|
int timing_debug_init(void);
|
|
|
|
/**
|
|
* Start a new set of timings
|
|
*/
|
|
void timing_debug_start_new_timings(void);
|
|
|
|
/**
|
|
* Dump results from current set of timings.
|
|
*/
|
|
void timing_debug_dump_results(void);
|
|
|
|
/**
|
|
* Record tick.
|
|
*/
|
|
void timing_debug_tick(char *msg);
|
|
|
|
/**
|
|
* Record tock. timing_debug_dump_results will then show the difference
|
|
* between this tock and the last tick.
|
|
*/
|
|
void timing_debug_tock(char *msg);
|
|
|
|
#endif /* #ifndef _TIMING_DEBUG_H */
|