Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 615 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 615 Bytes

Simple header-only profiler wrapper over the perfetto SDK Visits

Check src/main.cc for an example usage

Instructions

  • 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