#include <itkProbe.h>
Inheritance diagram for itk::Probe< ValueType, MeanType >:
This class is the base class of all the probes (time, memory, etc.) between the execution of two pieces of code. It can be started and stopped in order to evaluate the execution over multiple passes.
Definition at line 39 of file itkProbe.h.
Public Types | |
typedef unsigned long | CountType |
Public Member Functions | |
virtual ValueType | GetInstantValue (void) const=0 |
MeanType | GetMean (void) const |
CountType | GetNumberOfStarts (void) const |
CountType | GetNumberOfStops (void) const |
ValueType | GetTotal (void) const |
std::string | GetType (void) const |
std::string | GetUnit (void) const |
Probe (const std::string &type, const std::string unit) | |
void | Start (void) |
void | Stop (void) |
virtual | ~Probe () |
typedef unsigned long itk::Probe< ValueType, MeanType >::CountType |
Type for counting how many times the probe has been started and stopped.
Reimplemented in itk::TimeProbe, and itk::TimeProbe.
Definition at line 45 of file itkProbe.h.
itk::Probe< ValueType, MeanType >::Probe | ( | const std::string & | type, | |
const std::string | unit | |||
) |
Constructor
virtual itk::Probe< ValueType, MeanType >::~Probe | ( | ) | [virtual] |
Destructor
virtual ValueType itk::Probe< ValueType, MeanType >::GetInstantValue | ( | void | ) | const [pure virtual] |
Returns the instant value of the probed system.
Implemented in itk::MemoryProbe, and itk::TimeProbe.
MeanType itk::Probe< ValueType, MeanType >::GetMean | ( | void | ) | const |
Returns the average value changes between the starts and stops of the probe. Stop() has to be called at least once, returns 0 otherwise.
CountType itk::Probe< ValueType, MeanType >::GetNumberOfStarts | ( | void | ) | const |
Returns the number of times that the probe has been started
Reimplemented in itk::TimeProbe.
CountType itk::Probe< ValueType, MeanType >::GetNumberOfStops | ( | void | ) | const |
Returns the number of times that the probe has been stopped
Reimplemented in itk::TimeProbe.
ValueType itk::Probe< ValueType, MeanType >::GetTotal | ( | void | ) | const |
Returns the accumulated value changes between the starts and stops of the probe
std::string itk::Probe< ValueType, MeanType >::GetType | ( | void | ) | const |
Returns the type probed value
std::string itk::Probe< ValueType, MeanType >::GetUnit | ( | void | ) | const |
Returns the unit probed value
void itk::Probe< ValueType, MeanType >::Start | ( | void | ) |
Start counting the change of value
Reimplemented in itk::TimeProbe.
void itk::Probe< ValueType, MeanType >::Stop | ( | void | ) |
Stop counting the change of value
Reimplemented in itk::TimeProbe.