The labs are where we share technology that we have created for various projects that we hope other people can find useful.


SuperProfiler

A C++ library to easily profile your code.

  • Simply add a line to the beginning of any function you want to profile and SuperProfiler does the rest for you.
  • Automatically “mold” to your code path and keep track of average time spent in and total calls to each function, along each code path.
  • Outputs a list of every function profiled with the amount of time spent executing that function along with the total amount of times the function was called.
  • Also outputs the “call tree” so you can see exactly where time was spent.
  • Output to different formats after you are done profiling or create your own output format.
  • Current supported formats: Text, Comma Separated Values (import into a spreadsheet), XML,
  • No required dependencies other than the STL.
  • Unit tests included to automatically test SuperProfiler. (Requires optional http://unittest-cpp.sourceforge.net/ for unit tests)