#include <TimeStats.h>
Collaboration diagram for Impala::Util::TimeStats:
Public Member Functions | |
TimeStats (bool relative=false) | |
void | AddGroup (CString name) |
void | AddGroupsFromSub (TimeStats *sub) |
void | MeasureFirst () |
void | MeasureNext () |
void | MeasureFromSub (TimeStats *sub) |
void | MeasureLast () |
void | Print (std::ostream &os) |
String | AsString () |
int | NrGroups () const |
Group * | GetCurrentGroup () |
Group * | GetGroup (int number) |
const Group * | SelectGroup (CString name) |
const Group * | SelectGroup (int number) |
void | StartTime () |
void | StopTime () |
void | Reset () |
void | ComputePercentages () |
Protected Attributes | |
Timer | mClock |
std::vector< Group * > | mGroups |
int | mCurrentGroup |
bool | mIsTiming |
bool | mRelative |
double | mGrandTotal |
ILOG_VAR_DEC | |
Friends | |
std::ostream & | operator<< (std::ostream &os, TimeStats &stats) |
Classes | |
class | Group |
For example, one might time construction, processing and deletion of an item in a for loop. Measurements are grouped in groups (see AddGroup()).
Definition at line 18 of file TimeStats.h.