Go to the documentation of this file.
38 #ifndef profilingPstream_H
39 #define profilingPstream_H
79 static std::unique_ptr<cpuTime> timer_;
111 suspend_ =
bool(timer_);
121 inline static bool active()
123 return !suspend_ &&
bool(timer_);
143 (void) timer_->cpuTimeIncrement();
152 times_[idx] += timer_->cpuTimeIncrement();
static void addWaitTime()
Add time increment to waitTime.
static void suspend()
Suspend use of timer (if active)
static void beginTiming()
Update timer prior to measurement.
static double times(const enum timingType idx)
Access to the timing information at given index.
Timers and values for simple (simplistic) mpi-profiling. The entire class behaves as a singleton.
static void addScatterTime()
Add time increment to scatterTime.
static bool active()
Timer is active.
FixedList< double, 5 > timingList
The timing values.
static void addGatherTime()
Add time increment to gatherTime.
timingType
Enumeration within times array.
static void resume()
Resume use of timer (if previously active)
static timingList & times()
Access to the timing information.
~profilingPstream()
Destructor, disables global timer.
static void addAllToAllTime()
Add time increment to allToAllTime.
static void disable()
Remove timer for measuring communication activity.
static void addTime(const enum timingType idx)
Add time increment.
static void addReduceTime()
Add time increment to reduceTime.
A 1D vector of objects of type <T> with a fixed length <N>.
static void enable()
Create timer for measuring communication, or reset existing.
profilingPstream()
Default construct, enables global timer.