add additional API declaratiosn
This commit is contained in:
parent
336f3abb94
commit
0b85b65739
|
@ -151,14 +151,26 @@ void symbol_array_cleanup(symbol_array_t* arr);
|
|||
int rvprof_memory_add_stack_id_to_function(int func_id, int stack_id);
|
||||
int rvprof_memory_add_caller_to_function(int func_id, const char* caller);
|
||||
|
||||
//timing
|
||||
// timing
|
||||
rvprof_error_t rvprof_timing_init(void);
|
||||
uint64_t rvprof_timing_get_current(void);
|
||||
uint64_t rvprof_timing_get_cycles(void);
|
||||
double rvprof_timing_to_seconds(uint64_t nanoseconds);
|
||||
int rvprof_timing_test_cycle_counter(void);
|
||||
|
||||
// symbol resolution
|
||||
rvprof_error_t rvprof_symbols_init(const char* program_path);
|
||||
const char* rvprof_symbols_lookup(void* addr);
|
||||
void rvprof_symbols_cleanup(void);
|
||||
|
||||
// function statistics management
|
||||
int rvprof_stats_find_or_create_function(const char* name, const char* caller);
|
||||
int rvprof_stats_get_or_create_stack_id(void);
|
||||
void rvprof_stats_add_stack_id_to_function(int func_id, int stid);
|
||||
void rvprof_stats_add_caller_to_function(int func_id, const char* caller);
|
||||
|
||||
// output
|
||||
rvprof_error_t rvprof_output_generate_report(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue