Simple header-only profiler wrapper over the perfetto SDK
Check src/main.cc for an example usage
- Include the header src/VisualProfiler.hpp
- Link the perfetto SDK
- Add
PROFILER_STORAGE()
to your entrypoint file - Use
PROFILER_INIT()
to initialize the trace - Use
PROFILER_DEFINE_CATEGORIES
to set trace categories - Use
PROFILE_FUNCTION
,PROFILE_SCOPE
etc. to trace scopes - Run your code and load the
results.data
file into perfetto ui