Simple header-only profiler wrapper over the perfetto SDK ![Visits](https://camo.githubusercontent.com/1f2e1b4694bfc7f56a1c11ad9cc7c9d8e3d0abd7e2541e34599a3c7c08d47899/68747470733a2f2f6c616d6264612e3334383537352e78797a2f7265706f2d766965772d636f756e7465723f7265706f3d73696d706c652d70726f66696c6572)
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