Go to the source code of this file.
Classes |
class | TTmInfo |
class | TJulianDate |
class | TSecTm |
class | TTm |
class | TExeTm |
class | TTmStopWatch |
class | TTmTimer |
Typedefs |
typedef TVec< TSecTm > | TSecTmV |
typedef TKeyDat< TSecTm, TStr > | TSecTmStrKd |
typedef TVec< TSecTmStrKd > | TSecTmStrKdV |
typedef TVec< TTm > | TTmV |
typedef TPair< TTm, TStr > | TTmStrPr |
typedef TPair< TStr, TTm > | TStrTmPr |
typedef TVec< TTmStrPr > | TTmStrPrV |
typedef TVec< TStrTmPr > | TStrTmPrV |
Enumerations |
enum | TTmUnit {
tmuUndef,
tmu1Sec,
tmu1Min,
tmu10Min,
tmu15Min,
tmu30Min,
tmu1Hour,
tmu2Hour,
tmu4Hour,
tmu6Hour,
tmu12Hour,
tmuDay,
tmuWeek,
tmuMonth,
tmuYear,
tmuNodes,
tmuEdges
} |
Functions |
| TTmProfiler () |
static PTmProfiler | New () |
int | AddTimer (const TStr &TimerNm) |
int | GetTimerId (const TStr &TimerNm) const |
TStr | GetTimerNm (const int &TimerId) const |
int | GetTimers () const |
int | GetTimerIdFFirst () const |
bool | GetTimerIdFNext (int &TimerId) const |
void | StartTimer (const TStr &TimerNm) |
void | StartTimer (const int &TimerId) |
void | StopTimer (const TStr &TimerNm) |
void | StopTimer (const int &TimerId) |
void | ResetAll () |
void | ResetTimer (const TStr &TimerNm) |
void | ResetTimer (const int &TimerId) |
double | GetTimerSumSec () const |
double | GetTimerSec (const int &TimerId) const |
void | PrintReport (const TStr &ProfileNm="") const |
Variables |
ClassTP(TTmProfiler,
PTmProfiler) private THash
< TStr, TTmStopWatch > | TimerH |
Typedef Documentation
Definition at line 205 of file tm.h.
Definition at line 206 of file tm.h.
Definition at line 204 of file tm.h.
Definition at line 349 of file tm.h.
Definition at line 351 of file tm.h.
Definition at line 348 of file tm.h.
Definition at line 350 of file tm.h.
Definition at line 347 of file tm.h.
Enumeration Type Documentation
- Enumerator:
tmuUndef |
|
tmu1Sec |
|
tmu1Min |
|
tmu10Min |
|
tmu15Min |
|
tmu30Min |
|
tmu1Hour |
|
tmu2Hour |
|
tmu4Hour |
|
tmu6Hour |
|
tmu12Hour |
|
tmuDay |
|
tmuWeek |
|
tmuMonth |
|
tmuYear |
|
tmuNodes |
|
tmuEdges |
|
Definition at line 9 of file tm.h.
{
tmuUndef, tmu1Sec, tmu1Min, tmu10Min, tmu15Min, tmu30Min,
tmu1Hour, tmu2Hour, tmu4Hour, tmu6Hour, tmu12Hour, tmuDay, tmuWeek,
tmuMonth, tmuYear, tmuNodes, tmuEdges
} TTmUnit;
Function Documentation
Definition at line 410 of file tm.h.
{ return TimerH.GetKeyId(TimerNm); }
Definition at line 413 of file tm.h.
{ return TimerH.FFirstKeyId(); }
Definition at line 414 of file tm.h.
{ return TimerH.FNextKeyId(TimerId); }
Definition at line 411 of file tm.h.
{ return TimerH.GetKey(TimerId); }
Definition at line 412 of file tm.h.
static PTmProfiler New |
( |
| ) |
[static] |
Definition at line 407 of file tm.h.
Definition at line 1311 of file tm.cpp.
{
const double TimerSumSec = GetTimerSumSec();
printf("-- %s --\n", ProfileNm.CStr());
printf("Sum: (%.2f sec):\n", TimerSumSec);
int TimerId = GetTimerIdFFirst();
while (GetTimerIdFNext(TimerId)) {
TStr TimerNm = GetTimerNm(TimerId);
TimerNm = TStr::GetSpaceStr(TimerNm.Len() - MxNmLen) + TimerNm;
if (TimerSumSec > 0.0) {
const double TimerSec = GetTimerSec(TimerId);
const double TimerPerc = TimerSec / TimerSumSec * 100.0;
printf(" %s: %.2fs [%.2f%%]\n", TimerNm.CStr(), TimerSec, TimerPerc);
} else {
printf(" %s: -\n", TimerNm.CStr());
}
}
printf("--\n");
}
Definition at line 423 of file tm.h.
{ TimerH.GetDat(TimerNm).Reset(false); }
Definition at line 424 of file tm.h.
{ TimerH[TimerId].Reset(false); }
Definition at line 416 of file tm.h.
{ TimerH.GetDat(TimerNm).Start(); }
Definition at line 417 of file tm.h.
Definition at line 419 of file tm.h.
{ TimerH.GetDat(TimerNm).Stop(); }
Definition at line 420 of file tm.h.
Definition at line 406 of file tm.h.
Variable Documentation
Definition at line 400 of file tm.h.