PPL Logo

localStat Class Reference

Group to gather stats on 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 *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.

Detailed Description

Group to gather stats on each PE separately.

Definition at line 40 of file stats.h.


Constructor & Destructor Documentation

localStat::localStat ( void   )  [inline]

Basic Constructor.

Definition at line 63 of file stats.h.

References Converse::CkMyPe(), POSE_Config::dop, dopFileName, and dopFilePtr.

Here is the call graph for this function:

localStat::localStat ( CkMigrateMessage msg  )  [inline]

Migration constructor.

Definition at line 81 of file stats.h.

localStat::~localStat (  )  [inline]

Destructor.

Definition at line 83 of file stats.h.

References dopFilePtr.


Member Function Documentation

void localStat::TimerStart ( int  timer  ) 

void localStat::TimerStop (  )  [inline]

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void localStat::Do (  )  [inline]

Increment event forward execution count.

Definition at line 93 of file stats.h.

References dos.

Referenced by con::Step().

Here is the caller graph for this function:

void localStat::Undo (  )  [inline]

Increment event rollback count.

Definition at line 95 of file stats.h.

References undos.

Referenced by opt::Rollback().

Here is the caller graph for this function:

void localStat::Commit (  )  [inline]

Increment commit count.

Definition at line 97 of file stats.h.

References commits.

Referenced by eventQueue::CommitStatsHelper().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

void localStat::GvtInc (  )  [inline]

Increment GVT estimation count.

Definition at line 101 of file stats.h.

References gvts.

Referenced by GVT::computeGVT().

Here is the caller graph for this function:

void localStat::Rollback (  )  [inline]

Increment rollback count.

Definition at line 103 of file stats.h.

References rollbacks.

Referenced by opt::Rollback().

Here is the caller graph for this function:

void localStat::Checkpoint (  )  [inline]

Increment checkpoint count and adjust max.

Definition at line 105 of file stats.h.

References chkPts, and maxChkPts.

void localStat::Reclaim (  )  [inline]

Decrement checkpoint count.

Definition at line 107 of file stats.h.

References chkPts.

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

Add to checkpointed bytes count.

Definition at line 109 of file stats.h.

References cpBytes.

void localStat::SendStats (  ) 

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().

Here is the caller graph for this function:

void localStat::SetMaximums ( POSE_TimeType  gvt,
double  grt 
) [inline]

Set maximum times.

Definition at line 115 of file stats.h.

References maxGRT, and maxGVT.

Referenced by eventQueue::CommitStatsHelper().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:


Field Documentation

short int localStat::whichStat [private]

Current active timer.

Definition at line 43 of file stats.h.

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

Counters for various occurrences.

Definition at line 45 of file stats.h.

Referenced by Rollback().

int localStat::dos [private]

Definition at line 45 of file stats.h.

Referenced by Do(), and SendStats().

int localStat::undos [private]

Definition at line 45 of file stats.h.

Referenced by SendStats(), and Undo().

Definition at line 45 of file stats.h.

Referenced by Commit(), and SendStats().

int localStat::loops [private]

Definition at line 45 of file stats.h.

Referenced by Loop(), and SendStats().

int localStat::gvts [private]

Definition at line 45 of file stats.h.

Referenced by GvtInc(), and SendStats().

Definition at line 45 of file stats.h.

Referenced by Checkpoint(), and Reclaim().

Definition at line 45 of file stats.h.

Referenced by Checkpoint(), and SendStats().

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]

Definition at line 49 of file stats.h.

Referenced by SwitchTimer(), and TimerStop().

double localStat::gvtt [private]

Definition at line 49 of file stats.h.

Referenced by SwitchTimer(), and TimerStop().

double localStat::simt [private]

Definition at line 49 of file stats.h.

Referenced by SwitchTimer(), and TimerStop().

double localStat::cpt [private]

Definition at line 49 of file stats.h.

Referenced by SwitchTimer(), and TimerStop().

double localStat::cant [private]

Definition at line 49 of file stats.h.

Referenced by SwitchTimer(), and TimerStop().

double localStat::lbt [private]

Definition at line 49 of file stats.h.

Referenced by SwitchTimer(), and TimerStop().

double localStat::fct [private]

Definition at line 49 of file stats.h.

Referenced by SwitchTimer(), and TimerStop().

double localStat::commt [private]

Definition at line 49 of file stats.h.

Referenced by SwitchTimer(), and TimerStop().

double localStat::rollbackTime [private]

Time accumulators.

Definition at line 51 of file stats.h.

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

double localStat::totalTime [private]

Definition at line 51 of file stats.h.

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

double localStat::gvtTime [private]

Definition at line 51 of file stats.h.

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

double localStat::simTime [private]

Definition at line 51 of file stats.h.

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

double localStat::cpTime [private]

Definition at line 51 of file stats.h.

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

double localStat::canTime [private]

Definition at line 51 of file stats.h.

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

double localStat::lbTime [private]

Definition at line 51 of file stats.h.

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

double localStat::fcTime [private]

Definition at line 51 of file stats.h.

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

double localStat::commTime [private]

Definition at line 51 of file stats.h.

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

double localStat::maxDo [private]

Definition at line 51 of file stats.h.

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

double localStat::minDo [private]

Definition at line 51 of file stats.h.

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

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]

Definition at line 56 of file stats.h.

Referenced by SendStats(), and SetMaximums().

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().


The documentation for this class was generated from the following files:

Generated on Mon Sep 21 08:26:51 2020 for Charm++ by  doxygen 1.5.5