quickprof.h File Reference

#include <iostream>
#include <fstream>
#include <sstream>
#include <map>
#include <math.h>
#include <sys/time.h>

Go to the source code of this file.

Namespaces

namespace  quickprof

Classes

struct  quickprof::ProfileBlock
 A simple data structure representing a single timed block of code. More...
class  quickprof::Clock
 A cross-platform clock class inspired by the Timer classes in Ogre (http://www.ogre3d.org). More...
class  quickprof::Profiler
 A singleton class that manages timing for a set of profiling blocks. More...

Defines

#define PROFILER   quickprof::Profiler::instance()
 Use this macro to access the profiler singleton.

Enumerations

enum  quickprof::TimeFormat { quickprof::SECONDS, quickprof::MILLISECONDS, quickprof::MICROSECONDS, quickprof::PERCENT }
 A set of ways to represent timing results. More...


Define Documentation

#define PROFILER   quickprof::Profiler::instance()

Use this macro to access the profiler singleton.

For example: PROFILER.init(); ... PROFILER.beginBlock("foo"); foo(); PROFILER.endBlock("foo");

Definition at line 52 of file quickprof.h.


Generated on Wed Mar 26 10:40:47 2008 for QuickProf by  doxygen 1.5.5