utility/profiler
This app demonstrates how to use the profiler utility.
Profiler Utility Usage
The basic flow for using this utility is as follows:
-
Create a header file named:
app_profiler_definitions.h
Note : Ensure this file is in theGLOBAL_INCLUDES
-
In this header file, define all profilers with the macro
DEFINE_PROFILER()
-
At the start of the app, in
gos_app_init
, callPROFILER_REGISTER_ALL()
to register all the profilers -
Then use
PROFILER_BEGIN()
andPROFILER_END()
to profile various parts of the code -
Use
PROFILER_PRINT_ALL_STATUSES()
to print the status of all profilers to the log bus
You can later disable profiling by adding
PROFILER_DISABLED
to the
GLOBAL_DEFINES
.
Source Files
-
resources
- GlobalSign.ca.cer
- manifest.cfg
- app_profiler_definitions.h
- main.c
- profiler.mk
- README.md