#include <stats.h>
Public Member Functions | |
localStat (void) | |
Basic Constructor. | |
localStat (CkMigrateMessage *msg) | |
Migration constructor. | |
~localStat () | |
Destructor. | |
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 (POSE_TimeType gvt, double grt) |
Set maximum times. | |
void | WriteDopData (double srt, double ert, POSE_TimeType svt, POSE_TimeType evt) |
Write data to this PE's DOP log file. | |
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 |
POSE_TimeType | maxGVT |
Maximum values for GVT and real time taken by events. | |
double | maxGRT |
char | dopFileName [20] |
Output file name for stats for DOP calculation. | |
FILE * | dopFilePtr |
Output file pointer for DOP calculation. |
Definition at line 40 of file stats.h.
localStat::localStat | ( | void | ) | [inline] |
Basic Constructor.
Definition at line 63 of file stats.h.
References Converse::CkMyPe(), POSE_Config::dop, dopFileName, and dopFilePtr.
localStat::localStat | ( | CkMigrateMessage * | msg | ) | [inline] |
localStat::~localStat | ( | ) | [inline] |
void localStat::TimerStart | ( | int | timer | ) |
Start the specified timer.
Referenced by LBgroup::balance(), PVT::beginCheckpoint(), PVT::beginLoadbalancing(), LBgroup::calculateLocalLoad(), PVT::callAtSync(), sim::Cancel(), sim::CheckpointCommit(), sim::CheckpointStep(), sim::Commit(), GVT::computeGVT(), PVT::objUpdate(), PVT::PVT(), LBstrategy::recvLoadReport(), PVT::reportReduce(), PVT::resumeAfterCheckpoint(), PVT::resumeAfterLB(), GVT::runGVT(), PVT::setGVT(), PVT::startPhase(), and sim::Step().
void localStat::TimerStop | ( | ) | [inline] |
Stop the currently active timer.
Definition at line 184 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::balance(), PVT::beginCheckpoint(), PVT::beginLoadbalancing(), LBgroup::calculateLocalLoad(), PVT::callAtSync(), sim::Cancel(), sim::CheckpointCommit(), sim::CheckpointStep(), sim::Commit(), GVT::computeGVT(), PVT::objUpdate(), PVT::PVT(), LBstrategy::recvLoadReport(), PVT::reportReduce(), PVT::resumeAfterCheckpoint(), PVT::resumeAfterLB(), 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 214 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::CheckpointCommit(), sim::CheckpointStep(), sim::Commit(), GVT::computeGVT(), PVT::objUpdate(), opt::Rollback(), sim::SeqResumeAfterCheckpoint(), sim::Step(), and con::Step().
void localStat::Do | ( | ) | [inline] |
Increment event forward execution count.
Definition at line 93 of file stats.h.
References dos.
Referenced by con::Step().
void localStat::Undo | ( | ) | [inline] |
Increment event rollback count.
Definition at line 95 of file stats.h.
References undos.
Referenced by opt::Rollback().
void localStat::Commit | ( | ) | [inline] |
Increment commit count.
Definition at line 97 of file stats.h.
References commits.
Referenced by eventQueue::CommitStatsHelper().
void localStat::Loop | ( | ) | [inline] |
Increment event loop count.
Definition at line 99 of file stats.h.
References loops.
Referenced by spec::Step(), opt3::Step(), opt2::Step(), opt::Step(), adapt5::Step(), adapt4::Step(), adapt3::Step(), adapt2::Step(), and adapt::Step().
void localStat::GvtInc | ( | ) | [inline] |
Increment GVT estimation count.
Definition at line 101 of file stats.h.
References gvts.
Referenced by GVT::computeGVT().
void localStat::Rollback | ( | ) | [inline] |
Increment rollback count.
Definition at line 103 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, POSE_Config::dop, dopFileName, dopFilePtr, dos, localStatSummary::dos, localStatSummary::doTime, fcTime, localStatSummary::fcTime, gvts, localStatSummary::gvts, gvtTime, localStatSummary::gvtTime, lbTime, localStatSummary::lbTime, loops, localStatSummary::loops, PUP::m, maxChkPts, localStatSummary::maxChkPts, maxDo, localStatSummary::maxDo, maxGRT, localStatSummary::maxGRT, maxGVT, localStatSummary::maxGVT, minDo, localStatSummary::minDo, localStatSummary::pe, pose_config, localStatSummary::rbTime, rollbackTime, simTime, localStatSummary::simTime, totalTime, undos, and localStatSummary::undos.
int localStat::TimerRunning | ( | ) | [inline] |
Query which timer is active.
Definition at line 113 of file stats.h.
References whichStat.
Referenced by sim::CheckpointCommit(), sim::CheckpointStep(), sim::Commit(), PVT::objUpdate(), and sim::Step().
void localStat::SetMaximums | ( | POSE_TimeType | gvt, | |
double | grt | |||
) | [inline] |
void localStat::WriteDopData | ( | double | srt, | |
double | ert, | |||
POSE_TimeType | svt, | |||
POSE_TimeType | evt | |||
) | [inline] |
Write data to this PE's DOP log file.
Definition at line 120 of file stats.h.
References dopFileName, and dopFilePtr.
Referenced by eventQueue::CommitStatsHelper().
short int localStat::whichStat [private] |
Current active timer.
Definition at line 43 of file stats.h.
Referenced by SwitchTimer(), TimerRunning(), 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 47 of file stats.h.
Referenced by CPbytes(), and SendStats().
double localStat::dot [private] |
Timer start values.
Definition at line 49 of file stats.h.
Referenced by SwitchTimer(), 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 51 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] |
POSE_TimeType localStat::maxGVT [private] |
Maximum values for GVT and real time taken by events.
Definition at line 55 of file stats.h.
Referenced by SendStats(), and SetMaximums().
double localStat::maxGRT [private] |
char localStat::dopFileName[20] [private] |
Output file name for stats for DOP calculation.
Definition at line 58 of file stats.h.
Referenced by localStat(), SendStats(), and WriteDopData().
FILE* localStat::dopFilePtr [private] |
Output file pointer for DOP calculation.
Definition at line 60 of file stats.h.
Referenced by localStat(), SendStats(), WriteDopData(), and ~localStat().