1 #ifndef __PROFILING_H__
2 #define __PROFILING_H__
6 #define PROFILING_STARTED 1
7 #define PROFILING_INTERNAL 2
9 struct profile_callstack_t {
12 unsigned long time_start;
16 struct profile_site_t {
22 unsigned long time_accum;
29 unsigned long time_run;
30 unsigned long time_start;
31 struct profile_site_t *sites;
36 void profiling_init(
void)
__attribute__ ((no_instrument_function));
37 void profiling_start(
void)
__attribute__ ((no_instrument_function));
38 void profiling_stop(
void)
__attribute__ ((no_instrument_function));
39 void profiling_report(const
char *name, uint8_t pretty)
__attribute__ ((no_instrument_function));
40 struct profile_t *profiling_get(
void)
__attribute__ ((no_instrument_function));
41 void profiling_stack_trace(
void)
__attribute__ ((no_instrument_function));