#include <stats.h>
Inheritance diagram for localStat:


Public Member Functions | |
| localStat (void) | |
| Basic Constructor. | |
| localStat (CkMigrateMessage *) | |
| void | TimerStart (int timer) |
| Start the specified timer. | |
| void | TimerStop () |
| Stop the currently active timer. | |
| void | SwitchTimer (int timer) |
| Switch to different timer, stopping active timer. | |
| void | Do () |
| Increment event forward execution count. | |
| void | Undo () |
| Increment event rollback count. | |
| void | Commit () |
| Increment commit count. | |
| void | Loop () |
| Increment event loop count. | |
| void | GvtInc () |
| Increment GVT estimation count. | |
| void | Rollback () |
| Increment rollback count. | |
| void | Checkpoint () |
| Increment checkpoint count and adjust max. | |
| void | Reclaim () |
| Decrement checkpoint count. | |
| void | CPbytes (int n) |
| Add to checkpointed bytes count. | |
| void | SendStats () |
| Send local stats to global collector. | |
| int | TimerRunning () |
| Query which timer is active. | |
| void | SetMaximums (int gvt, double grt) |
| Set maximum times. | |
Private Attributes | |
| short int | whichStat |
| Current active timer. | |
| int | rollbacks |
| Counters for various occurrences. | |
| int | dos |
| int | undos |
| int | commits |
| int | loops |
| int | gvts |
| int | chkPts |
| int | maxChkPts |
| long | cpBytes |
| Count of bytes checkpointed. | |
| double | dot |
| Timer start values. | |
| double | rbt |
| double | gvtt |
| double | simt |
| double | cpt |
| double | cant |
| double | lbt |
| double | fct |
| double | commt |
| double | rollbackTime |
| Time accumulators. | |
| double | totalTime |
| double | gvtTime |
| double | simTime |
| double | cpTime |
| double | canTime |
| double | lbTime |
| double | fcTime |
| double | commTime |
| double | maxDo |
| double | minDo |
| int | maxGVT |
| Maximum values for GVT and real time taken by events. | |
| double | maxGRT |
Definition at line 39 of file stats.h.
| localStat::localStat | ( | void | ) | [inline] |
| localStat::localStat | ( | CkMigrateMessage * | ) | [inline] |
| void localStat::TimerStart | ( | int | timer | ) | [inline] |
Start the specified timer.
Definition at line 125 of file stats.h.
References cant, CmiWallTimer(), commt, cpt, dot, fct, gvtt, lbt, rbt, simt, SwitchTimer(), and whichStat.
Referenced by LBgroup::balance(), LBgroup::calculateLocalLoad(), sim::Cancel(), sim::Commit(), GVT::computeGVT(), PVT::objUpdate(), PVT::PVT(), LBstrategy::recvLoadReport(), PVT::reportReduce(), GVT::runGVT(), PVT::setGVT(), PVT::startPhase(), and sim::Step().
| void localStat::TimerStop | ( | ) | [inline] |
Stop the currently active timer.
Definition at line 151 of file stats.h.
References cant, canTime, CmiWallTimer(), commt, commTime, cpt, cpTime, dot, fct, fcTime, gvtt, gvtTime, lbt, lbTime, maxDo, minDo, rbt, rollbackTime, simt, simTime, totalTime, and whichStat.
Referenced by LBgroup::calculateLocalLoad(), sim::Cancel(), sim::Commit(), GVT::computeGVT(), PVT::objUpdate(), PVT::PVT(), LBstrategy::recvLoadReport(), PVT::reportReduce(), GVT::runGVT(), PVT::setGVT(), PVT::startPhase(), and sim::Step().
| void localStat::SwitchTimer | ( | int | timer | ) | [inline] |
Switch to different timer, stopping active timer.
Definition at line 181 of file stats.h.
References cant, canTime, CmiWallTimer(), commt, commTime, cpt, cpTime, dot, fct, fcTime, gvtt, gvtTime, lbt, lbTime, maxDo, minDo, rbt, rollbackTime, simt, simTime, totalTime, and whichStat.
Referenced by sim::Cancel(), chpt< StateType >::checkpoint(), sim::Commit(), GVT::computeGVT(), PVT::objUpdate(), opt::Rollback(), sim::Step(), con::Step(), and TimerStart().
| void localStat::Do | ( | ) | [inline] |
Increment event forward execution count.
Definition at line 75 of file stats.h.
References dos.
Referenced by con::Step().
| void localStat::Undo | ( | ) | [inline] |
Increment event rollback count.
Definition at line 77 of file stats.h.
References undos.
Referenced by opt::Rollback().
| void localStat::Commit | ( | ) | [inline] |
Increment commit count.
Definition at line 79 of file stats.h.
References commits.
Referenced by eventQueue::CommitStatsHelper().
| void localStat::Loop | ( | ) | [inline] |
Increment event loop count.
Definition at line 81 of file stats.h.
References loops.
Referenced by spec::Step(), opt3::Step(), opt2::Step(), opt::Step(), adapt4::Step(), adapt3::Step(), adapt2::Step(), and adapt::Step().
| void localStat::GvtInc | ( | ) | [inline] |
Increment GVT estimation count.
Definition at line 83 of file stats.h.
References gvts.
Referenced by GVT::computeGVT().
| void localStat::Rollback | ( | ) | [inline] |
Increment rollback count.
Definition at line 85 of file stats.h.
References rollbacks.
Referenced by opt::Rollback().
| void localStat::Checkpoint | ( | ) | [inline] |
| void localStat::Reclaim | ( | ) | [inline] |
| void localStat::CPbytes | ( | int | n | ) | [inline] |
| void localStat::SendStats | ( | ) |
Send local stats to global collector.
Definition at line 12 of file stats.C.
References canTime, localStatSummary::canTime, Converse::CkMyPe(), commits, localStatSummary::commits, commTime, localStatSummary::commTime, cpBytes, localStatSummary::cpBytes, cpTime, localStatSummary::cpTime, dos, localStatSummary::dos, localStatSummary::doTime, fcTime, localStatSummary::fcTime, gvts, localStatSummary::gvts, gvtTime, localStatSummary::gvtTime, lbTime, localStatSummary::lbTime, loops, localStatSummary::loops, maxChkPts, localStatSummary::maxChkPts, maxDo, localStatSummary::maxDo, maxGRT, localStatSummary::maxGRT, maxGVT, localStatSummary::maxGVT, minDo, localStatSummary::minDo, localStatSummary::pe, localStatSummary::rbTime, rollbackTime, simTime, localStatSummary::simTime, theGlobalStats, totalTime, undos, and localStatSummary::undos.
| int localStat::TimerRunning | ( | ) | [inline] |
Query which timer is active.
Definition at line 95 of file stats.h.
References whichStat.
Referenced by sim::Commit(), PVT::objUpdate(), and sim::Step().
| void localStat::SetMaximums | ( | int | gvt, | |
| double | grt | |||
| ) | [inline] |
short int localStat::whichStat [private] |
Current active timer.
Definition at line 42 of file stats.h.
Referenced by SwitchTimer(), TimerRunning(), TimerStart(), and TimerStop().
int localStat::rollbacks [private] |
int localStat::dos [private] |
int localStat::undos [private] |
int localStat::commits [private] |
int localStat::loops [private] |
int localStat::gvts [private] |
int localStat::chkPts [private] |
int localStat::maxChkPts [private] |
long localStat::cpBytes [private] |
Count of bytes checkpointed.
Definition at line 46 of file stats.h.
Referenced by CPbytes(), and SendStats().
double localStat::dot [private] |
Timer start values.
Definition at line 48 of file stats.h.
Referenced by SwitchTimer(), TimerStart(), and TimerStop().
double localStat::rbt [private] |
double localStat::gvtt [private] |
double localStat::simt [private] |
double localStat::cpt [private] |
double localStat::cant [private] |
double localStat::lbt [private] |
double localStat::fct [private] |
double localStat::commt [private] |
double localStat::rollbackTime [private] |
Time accumulators.
Definition at line 50 of file stats.h.
Referenced by SendStats(), SwitchTimer(), and TimerStop().
double localStat::totalTime [private] |
double localStat::gvtTime [private] |
double localStat::simTime [private] |
double localStat::cpTime [private] |
double localStat::canTime [private] |
double localStat::lbTime [private] |
double localStat::fcTime [private] |
double localStat::commTime [private] |
double localStat::maxDo [private] |
double localStat::minDo [private] |
int localStat::maxGVT [private] |
Maximum values for GVT and real time taken by events.
Definition at line 54 of file stats.h.
Referenced by SendStats(), and SetMaximums().
double localStat::maxGRT [private] |
1.5.1