A profiling class that lets you save execution count and times for several tasks. More...
#include <libppbase/base/Profiling.h>
Public Member Functions | |
| template<class TO > | |
| void | dump (TO &out) |
| dump contents to a stream | |
| const std::map< String, std::pair< unsigned, u_longlong_t > > & | getTasks () const |
| Gets the profiled tasks. | |
| void | start () |
| Starts profiling of a task (called at start of task). | |
| void | stop (const char *name, unsigned count=1) |
| Stops profiling of a task (called at end of task). | |
A profiling class that lets you save execution count and times for several tasks.
| const std::map<String, std::pair<unsigned, u_longlong_t> >& base::Profiling::getTasks | ( | ) | const |
Gets the profiled tasks.
| void base::Profiling::stop | ( | const char * | name, | |
| unsigned | count = 1 | |||
| ) |
Stops profiling of a task (called at end of task).
| name | the task name, may not be NULL | |
| count | number of tasks performed |
1.7.1