edbee - Qt Editor Library
|
FILE / LINE / FUNCTION (or func ) More...
#include <simpleprofiler.h>
Classes | |
class | ProfilerItem |
the class to 'record a singlel item More... | |
struct | ProfileStackItem |
The current stats items. More... | |
Public Member Functions | |
SimpleProfiler () | |
virtual | ~SimpleProfiler () |
destroy the stuff More... | |
void | begin (const char *file, int line, const char *function, const char *name) |
begin the profiling More... | |
void | end () |
ends profiling More... | |
void | dumpResults () |
This method dumps the results to the output. More... | |
Static Public Member Functions | |
static SimpleProfiler * | instance () |
This method returns the profile instance. More... | |
Protected Attributes | |
QMap< QString, ProfilerItem * > | statsMap_ |
The statistics. More... | |
QStack< ProfileStackItem > | stack_ |
The current items being processed. More... | |
FILE / LINE / FUNCTION (or func )
A simple profiler class that can be used to profile certain parts of the code. I've introduced this class as a poor-mans profiler. Because currently valgrand and other profilers don't seem to run smoothly on my mac. They crash ..
edbee::SimpleProfiler::SimpleProfiler | ( | ) |
|
virtual |
destroy the stuff
void edbee::SimpleProfiler::begin | ( | const char * | file, |
int | line, | ||
const char * | function, | ||
const char * | name | ||
) |
begin the profiling
void edbee::SimpleProfiler::dumpResults | ( | ) |
This method dumps the results to the output.
void edbee::SimpleProfiler::end | ( | ) |
ends profiling
|
static |
This method returns the profile instance.
|
protected |
The current items being processed.
|
protected |
The statistics.