t348575 / simple-profiler

Header only visual profiler using perfetto

Repository from Github https://github.comt348575/simple-profilerRepository from Github https://github.comt348575/simple-profiler

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

About

Header only visual profiler using perfetto

License:Apache License 2.0


Languages

Language:C++ 82.9%Language:CMake 17.1%