Go to the documentation of this file.
38 #ifndef profilingPstream_H
39 #define profilingPstream_H
106 inline static bool active()
108 return timer_.
valid();
128 (void) timer_->cpuTimeIncrement();
137 times_[idx] += timer_->cpuTimeIncrement();
static void addWaitTime()
Add time increment to waitTime.
static void beginTiming()
Update timer prior to measurement.
bool valid() const noexcept
True if the managed pointer is non-null.
static void suspend()
Suspend use of timer (if active)
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.
static void addGatherTime()
Add time increment to gatherTime.
static scalar times(const enum timingType idx)
Access to the timing information.
timingType
Enumeration within times array.
static FixedList< scalar, 5 > & times()
Access to the timing information.
~profilingPstream()
Destructor - remove global timer.
static void addAllToAllTime()
Add time increment to allToAllTime.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
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.
static void enable()
Create timer for measuring communication, or reset existing.
profilingPstream()
Construct and enable global timer.
static void resume()
Resume use of timer (if previously active)