localStat Class Reference

Group to gather stats on a each PE separately. More...

#include <stats.h>

Inheritance diagram for localStat:

Inheritance graph
[legend]
Collaboration diagram for localStat:

Collaboration graph
[legend]

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

Detailed Description

Group to gather stats on a each PE separately.

Definition at line 39 of file stats.h.


Constructor & Destructor Documentation

localStat::localStat ( void   )  [inline]

Basic Constructor.

Definition at line 58 of file stats.h.

References Converse::CkMyPe().

localStat::localStat ( CkMigrateMessage  )  [inline]

Definition at line 67 of file stats.h.


Member Function Documentation

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]

Increment checkpoint count and adjust max.

Definition at line 87 of file stats.h.

References chkPts, and maxChkPts.

void localStat::Reclaim (  )  [inline]

Decrement checkpoint count.

Definition at line 89 of file stats.h.

References chkPts.

void localStat::CPbytes ( int  n  )  [inline]

Add to checkpointed bytes count.

Definition at line 91 of file stats.h.

References cpBytes, and n.

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]

Set maximum times.

Definition at line 97 of file stats.h.

References gvt, maxGRT, and maxGVT.

Referenced by eventQueue::CommitStatsHelper().


Field Documentation

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]

Counters for various occurrences.

Definition at line 44 of file stats.h.

Referenced by Rollback().

int localStat::dos [private]

Definition at line 44 of file stats.h.

Referenced by Do(), and SendStats().

int localStat::undos [private]

Definition at line 44 of file stats.h.

Referenced by SendStats(), and Undo().

int localStat::commits [private]

Definition at line 44 of file stats.h.

Referenced by Commit(), and SendStats().

int localStat::loops [private]

Definition at line 44 of file stats.h.

Referenced by Loop(), and SendStats().

int localStat::gvts [private]

Definition at line 44 of file stats.h.

Referenced by GvtInc(), and SendStats().

int localStat::chkPts [private]

Definition at line 44 of file stats.h.

Referenced by Checkpoint(), and Reclaim().

int localStat::maxChkPts [private]

Definition at line 44 of file stats.h.

Referenced by Checkpoint(), and SendStats().

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]

Definition at line 48 of file stats.h.

Referenced by SwitchTimer(), TimerStart(), and TimerStop().

double localStat::gvtt [private]

Definition at line 48 of file stats.h.

Referenced by SwitchTimer(), TimerStart(), and TimerStop().

double localStat::simt [private]

Definition at line 48 of file stats.h.

Referenced by SwitchTimer(), TimerStart(), and TimerStop().

double localStat::cpt [private]

Definition at line 48 of file stats.h.

Referenced by SwitchTimer(), TimerStart(), and TimerStop().

double localStat::cant [private]

Definition at line 48 of file stats.h.

Referenced by SwitchTimer(), TimerStart(), and TimerStop().

double localStat::lbt [private]

Definition at line 48 of file stats.h.

Referenced by SwitchTimer(), TimerStart(), and TimerStop().

double localStat::fct [private]

Definition at line 48 of file stats.h.

Referenced by SwitchTimer(), TimerStart(), and TimerStop().

double localStat::commt [private]

Definition at line 48 of file stats.h.

Referenced by SwitchTimer(), TimerStart(), and TimerStop().

double localStat::rollbackTime [private]

Time accumulators.

Definition at line 50 of file stats.h.

Referenced by SendStats(), SwitchTimer(), and TimerStop().

double localStat::totalTime [private]

Definition at line 50 of file stats.h.

Referenced by SendStats(), SwitchTimer(), and TimerStop().

double localStat::gvtTime [private]

Definition at line 50 of file stats.h.

Referenced by SendStats(), SwitchTimer(), and TimerStop().

double localStat::simTime [private]

Definition at line 50 of file stats.h.

Referenced by SendStats(), SwitchTimer(), and TimerStop().

double localStat::cpTime [private]

Definition at line 50 of file stats.h.

Referenced by SendStats(), SwitchTimer(), and TimerStop().

double localStat::canTime [private]

Definition at line 50 of file stats.h.

Referenced by SendStats(), SwitchTimer(), and TimerStop().

double localStat::lbTime [private]

Definition at line 50 of file stats.h.

Referenced by SendStats(), SwitchTimer(), and TimerStop().

double localStat::fcTime [private]

Definition at line 50 of file stats.h.

Referenced by SendStats(), SwitchTimer(), and TimerStop().

double localStat::commTime [private]

Definition at line 50 of file stats.h.

Referenced by SendStats(), SwitchTimer(), and TimerStop().

double localStat::maxDo [private]

Definition at line 50 of file stats.h.

Referenced by SendStats(), SwitchTimer(), and TimerStop().

double localStat::minDo [private]

Definition at line 50 of file stats.h.

Referenced by SendStats(), SwitchTimer(), and TimerStop().

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]

Definition at line 55 of file stats.h.

Referenced by SendStats(), and SetMaximums().


The documentation for this class was generated from the following files:
Generated on Sun Jun 29 13:34:03 2008 for Charm++ by  doxygen 1.5.1