LR-splines  0.5
Public Member Functions | Public Attributes
LR::Profiler::Profile Struct Reference

Stores profiling data for one computational task. More...

List of all members.

Public Member Functions

 Profile ()
 The constructor initializes the total times to zero.
bool haveTime () const
 Checks if this profile item have any timing to report.

Public Attributes

clock_t startCPU
 The last starting CPU time of this task.
double startWall
 The last starting wall clock time of this task.
double totalCPU
 Total CPU time consumed by this task so far.
double totalWall
 Total wall clock time consumed by this task so far.
size_t nCalls
 Number of invokations of this task.
bool running
 Flag indicating if this task is currently running.

Detailed Description

Stores profiling data for one computational task.

Definition at line 60 of file Profiler.h.


Constructor & Destructor Documentation

The constructor initializes the total times to zero.

Definition at line 70 of file Profiler.h.

References totalCPU, and totalWall.

: nCalls(0), running(false) { totalCPU = totalWall = 0.0; }

Member Function Documentation

bool LR::Profiler::Profile::haveTime ( ) const [inline]

Checks if this profile item have any timing to report.

Definition at line 72 of file Profiler.h.

References totalCPU, and totalWall.

Referenced by LR::Profiler::report().

{ return totalCPU >= 0.005 || totalWall >= 0.005; }

Member Data Documentation

Number of invokations of this task.

Definition at line 66 of file Profiler.h.

Referenced by LR::operator<<(), and LR::Profiler::start().

Flag indicating if this task is currently running.

Definition at line 67 of file Profiler.h.

Referenced by LR::Profiler::start(), and LR::Profiler::stop().

The last starting CPU time of this task.

Definition at line 62 of file Profiler.h.

Referenced by LR::Profiler::start(), and LR::Profiler::stop().

The last starting wall clock time of this task.

Definition at line 63 of file Profiler.h.

Referenced by LR::Profiler::start(), and LR::Profiler::stop().

Total CPU time consumed by this task so far.

Definition at line 64 of file Profiler.h.

Referenced by haveTime(), LR::operator<<(), Profile(), LR::Profiler::report(), and LR::Profiler::stop().

Total wall clock time consumed by this task so far.

Definition at line 65 of file Profiler.h.

Referenced by haveTime(), LR::operator<<(), Profile(), LR::Profiler::report(), and LR::Profiler::stop().


The documentation for this struct was generated from the following file: