quickprof.h File Reference

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

Include dependency graph for quickprof.h:

Go to the source code of this file.

Namespaces

namespace  quickprof

Classes

struct  ProfileBlock
 A simple data structure representing a single timed block of code. More...
class  Clock
 A cross-platform clock class inspired by the Timer classes in Ogre (http://www.ogre3d.org). More...
class  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");


Generated on Fri Oct 30 16:29:02 2009 for Robot Simulator of the Robotics Group for Self-Organization of Control by  doxygen 1.4.7