Profiling
include/profiling.h View source View on GitHubStructs
Section titled “Structs”profiling_entry
Section titled “profiling_entry”struct profiling_entry {
const char *name;
void *data;
const char *(*to_str)(void *data);
void (*log)(void *data);
struct list_head list_node;
}; Functions
Section titled “Functions”profiling_init
Section titled “profiling_init”void profiling_init(void); profiling_log_all
Section titled “profiling_log_all”void profiling_log_all(void); Macros
Section titled “Macros”PROFILE_SECTION
Section titled “PROFILE_SECTION”#define PROFILE_SECTION LINKER_SECTION_ATTRIBUTE(profiling_data) REGISTER_PROFILING_ENTRY
Section titled “REGISTER_PROFILING_ENTRY”#define REGISTER_PROFILING_ENTRY(entry) \
static const struct profiling_entry entry PROFILE_SECTION