QuickProf

Simple C++ Performance Profiling

active-dates: Feb 2006 to Mar 2008 ext-link: sf.net/projects/quickprof

QuickProf is a simple C++ runtime performance measurement tool contained in a single header file. It can give you an overall timing summary when your app finishes, or it can generate an output file for graphing changes in runtime performance over time. Internally it uses a high-precision timer when available.

EXAMPLE USAGE

For example, I used QuickProf in one project to profile the three major components of my code (inference, propagation, and adaptation) and print an overall summary at the end:

adaptation: 23.2914 %
inference: 11.5562 %
propagation: 0.200819 %

The same run also generated a timing data file, which I then plotted (with the Python module Matplotlib):

Profile results