lv_profiler_builtin.h
API reference for lv_profiler_builtin.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_profiler_builtin_private.h
Summary
Functions
lv_profiler_builtin_set_enable
Enable or disable the built-in profiler.
void lv_profiler_builtin_set_enable(bool enable)| Name | Type | Description |
|---|---|---|
enable | bool | true to enable the built-in profiler, false to disable |
lv_profiler_builtin_config_init
Initialize the configuration of the built-in profiler.
void lv_profiler_builtin_config_init(lv_profiler_builtin_config_t *config)| Name | Type | Description |
|---|---|---|
config | lv_profiler_builtin_config_t * | Pointer to the configuration structure of the built-in profiler |
lv_profiler_builtin_init
Initialize the built-in profiler with the given configuration.
void lv_profiler_builtin_init(const lv_profiler_builtin_config_t *config)| Name | Type | Description |
|---|---|---|
config | const lv_profiler_builtin_config_t * | Pointer to the configuration structure of the built-in profiler |
lv_profiler_builtin_uninit
Uninitialize the built-in profiler.
void lv_profiler_builtin_uninit(void)lv_profiler_builtin_flush
Flush the profiling data to the console.
void lv_profiler_builtin_flush(void)lv_profiler_builtin_write
Write the profiling data for a function with the given tag.
void lv_profiler_builtin_write(const char *func, char tag)| Name | Type | Description |
|---|---|---|
func | const char * | Name of the function being profiled |
tag | char | Tag to associate with the profiling data for the function |
Macros
LV_PROFILER_BEGIN_TAG
#define LV_PROFILER_BEGIN_TAG(tag) \
lv_profiler_builtin_write((tag), 'B')LV_PROFILER_END_TAG
#define LV_PROFILER_END_TAG(tag) \
lv_profiler_builtin_write((tag), 'E')LV_PROFILER_BEGIN
#define LV_PROFILER_BEGIN LV_PROFILER_BEGIN_TAG(__func__)LV_PROFILER_END
#define LV_PROFILER_END LV_PROFILER_END_TAG(__func__)Dependencies
Last updated on