32 lines
722 B
C
32 lines
722 B
C
#ifndef RVPROF_H
|
|
#define RVPROF_H
|
|
|
|
#include <stdint.h>
|
|
#ifdef __cplusplus
|
|
extern "C"{
|
|
#endif
|
|
|
|
// not called by instrumented code directly anymore
|
|
void rvprof_init(const char* output_file);
|
|
|
|
// not called by instrumented code directly anymore
|
|
void rvprof_set_program_name(const char* name);
|
|
|
|
// begin profiling a named region
|
|
void rvprof_region_begin(const char* name);
|
|
|
|
// end profiling of a named region
|
|
void rvprof_region_end(const char* name);
|
|
|
|
// not called by instrumented code direclty anymore
|
|
void rvprof_finalize(void);
|
|
|
|
// cygnus function hooks
|
|
void __cyg_profile_func_enter(void *this_fn, void *call_site);
|
|
void __cyg_profile_func_exit(void *this_fn, void *call_site);
|
|
|
|
#ifdef __cplusplus
|
|
extern }
|
|
#endif
|
|
|
|
#endif |