LRT
12
|
#include <Profiler.h>
Public Member Functions | |
void | StartNewCycle () |
void | Log (std::string name, double timeTaken) |
void | ClearLogBuffer () |
Static Public Member Functions | |
static Profiler & | GetInstance () |
Static Public Attributes | |
static const int | reportPeriod = 50 * 5 |
static const int | reportLimit = 10 |
Protected Member Functions | |
DISALLOW_COPY_AND_ASSIGN (Profiler) |
Usage:
{ ProfiledSection pf( "NameOfActivity" ); // do something time consuming... }