Timers and values for simple (simplistic) mpi-profiling. The entire class behaves as a singleton. More...
Public Types | |
enum | timingType { GATHER = 0 , SCATTER , BROADCAST , REDUCE , WAIT , ALL_TO_ALL } |
Enumeration within times array. More... | |
typedef FixedList< double, 6 > | timingList |
The timing values. More... | |
Public Member Functions | |
profilingPstream () | |
Default construct, enables global timer. More... | |
~profilingPstream () | |
Destructor, disables global timer. More... | |
Static Public Member Functions | |
static void | enable () |
Create timer for measuring communication, or reset existing. More... | |
static void | disable () |
Remove timer for measuring communication activity. More... | |
static void | suspend () |
Suspend use of timer (if active) More... | |
static void | resume () |
Resume use of timer (if previously active) More... | |
static bool | active () |
Timer is active. More... | |
static timingList & | times () |
Access to the timing information. More... | |
static double | times (const enum timingType idx) |
Access to the timing information at given index. More... | |
static void | beginTiming () |
Update timer prior to measurement. More... | |
static void | addTime (const enum timingType idx) |
Add time increment. More... | |
static void | addGatherTime () |
Add time increment to gatherTime. More... | |
static void | addScatterTime () |
Add time increment to scatterTime. More... | |
static void | addBroadcastTime () |
Add time increment to broadcastTime. More... | |
static void | addReduceTime () |
Add time increment to reduceTime. More... | |
static void | addWaitTime () |
Add time increment to waitTime. More... | |
static void | addAllToAllTime () |
Add time increment to allToAllTime. More... | |
Timers and values for simple (simplistic) mpi-profiling. The entire class behaves as a singleton.
Definition at line 53 of file profilingPstream.H.
typedef FixedList<double, 6> timingList |
The timing values.
Definition at line 71 of file profilingPstream.H.
enum timingType |
Enumeration within times array.
Enumerator | |
---|---|
GATHER | |
SCATTER | |
BROADCAST | |
REDUCE | |
WAIT | |
ALL_TO_ALL |
Definition at line 60 of file profilingPstream.H.
profilingPstream | ( | ) |
Default construct, enables global timer.
Definition at line 41 of file profilingPstream.C.
References profilingPstream::enable().
~profilingPstream | ( | ) |
Destructor, disables global timer.
Definition at line 49 of file profilingPstream.C.
|
static |
Create timer for measuring communication, or reset existing.
Definition at line 57 of file profilingPstream.C.
References Foam::Zero.
Referenced by parProfiling::parProfiling(), and profilingPstream::profilingPstream().
|
static |
Remove timer for measuring communication activity.
Definition at line 73 of file profilingPstream.C.
Referenced by parProfiling::end(), and parProfiling::~parProfiling().
|
inlinestatic |
Suspend use of timer (if active)
Definition at line 109 of file profilingPstream.H.
References bool.
Referenced by parProfiling::report().
|
inlinestatic |
Resume use of timer (if previously active)
Definition at line 115 of file profilingPstream.H.
Referenced by parProfiling::report().
|
inlinestatic |
Timer is active.
Definition at line 121 of file profilingPstream.H.
References bool.
Referenced by profilingPstream::addTime(), profilingPstream::beginTiming(), and parProfiling::report().
|
inlinestatic |
Access to the timing information.
Definition at line 127 of file profilingPstream.H.
Referenced by parProfiling::report().
|
inlinestatic |
Access to the timing information at given index.
Definition at line 133 of file profilingPstream.H.
|
inlinestatic |
Update timer prior to measurement.
Definition at line 139 of file profilingPstream.H.
References profilingPstream::active().
|
inlinestatic |
Add time increment.
Definition at line 148 of file profilingPstream.H.
References profilingPstream::active().
Referenced by profilingPstream::addAllToAllTime(), profilingPstream::addBroadcastTime(), profilingPstream::addGatherTime(), profilingPstream::addReduceTime(), profilingPstream::addScatterTime(), and profilingPstream::addWaitTime().
|
inlinestatic |
Add time increment to gatherTime.
Definition at line 157 of file profilingPstream.H.
References profilingPstream::addTime(), and profilingPstream::GATHER.
|
inlinestatic |
Add time increment to scatterTime.
Definition at line 163 of file profilingPstream.H.
References profilingPstream::addTime(), and profilingPstream::SCATTER.
|
inlinestatic |
Add time increment to broadcastTime.
Definition at line 169 of file profilingPstream.H.
References profilingPstream::addTime(), and profilingPstream::BROADCAST.
|
inlinestatic |
Add time increment to reduceTime.
Definition at line 175 of file profilingPstream.H.
References profilingPstream::addTime(), and profilingPstream::REDUCE.
|
inlinestatic |
Add time increment to waitTime.
Definition at line 181 of file profilingPstream.H.
References profilingPstream::addTime(), and profilingPstream::WAIT.
|
inlinestatic |
Add time increment to allToAllTime.
Definition at line 187 of file profilingPstream.H.
References profilingPstream::addTime(), and profilingPstream::ALL_TO_ALL.