ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkResourceProbe.h>
Computes the change of a value between two points in code.
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 43 of file itkResourceProbe.h.
Public Types | |
typedef SizeValueType | CountType |
Public Member Functions | |
virtual void | ExpandedReport (std::ostream &os=std::cout, bool printSystemInfo=true, bool printReportHead=true, bool useTabs=false) |
virtual ValueType | GetInstantValue (void) const =0 |
virtual ValueType | GetMaximum () const |
virtual MeanType | GetMean () const |
virtual ValueType | GetMinimum () const |
virtual std::string | GetNameOfProbe () const |
CountType | GetNumberOfIteration () const |
CountType | GetNumberOfStarts () const |
CountType | GetNumberOfStops () const |
virtual ValueType | GetStandardDeviation () |
virtual ValueType | GetStandardError () |
virtual ValueType | GetTotal () const |
std::string | GetType () const |
std::string | GetUnit () const |
virtual void | JSONReport (std::ostream &os=std::cout) |
virtual void | PrintJSONSystemInformation (std::ostream &os=std::cout) |
virtual void | PrintSystemInformation (std::ostream &os=std::cout) |
virtual void | Report (std::ostream &os=std::cout, bool printSystemInfo=true, bool printReportHead=true, bool useTabs=false) |
virtual void | Reset () |
ResourceProbe (const std::string &type, const std::string &unit) | |
virtual void | SetNameOfProbe (const char *nameOfProbe) |
virtual void | Start () |
virtual void | Stop () |
virtual | ~ResourceProbe () |
Protected Member Functions | |
virtual void | GetSystemInformation () |
virtual void | PrintExpandedReportHead (std::ostream &os=std::cout, bool useTabs=false) |
template<typename T > | |
void | PrintJSONvar (std::ostream &os, const char *varName, T varValue, unsigned indent=4, bool comma=true) |
virtual void | PrintReportHead (std::ostream &os=std::cout, bool useTabs=false) |
virtual void | UpdateMinimumMaximumMeasuredValue (ValueType value) |
Private Attributes | |
vcl_size_t | m_AvailablePhysicalMemory |
vcl_size_t | m_AvailableVirtualMemory |
bool | m_Is64Bits |
std::string | m_ITKVersion |
ValueType | m_MaximumValue |
MeanType | m_MeanValue |
ValueType | m_MinimumValue |
std::string | m_NameOfProbe |
CountType | m_NumberOfIteration |
unsigned int | m_NumberOfLogicalCPU |
unsigned int | m_NumberOfPhysicalCPU |
CountType | m_NumberOfStarts |
CountType | m_NumberOfStops |
std::string | m_OSName |
std::string | m_OSPlatform |
std::string | m_OSRelease |
std::string | m_OSVersion |
std::vector< ValueType > | m_ProbeValueList |
int | m_ProcessorCacheSize |
float | m_ProcessorClockFrequency |
std::string | m_ProcessorName |
ValueType | m_StandardDeviation |
ValueType | m_StandardError |
ValueType | m_StartValue |
std::string | m_SystemName |
vcl_size_t | m_TotalPhysicalMemory |
ValueType | m_TotalValue |
vcl_size_t | m_TotalVirtualMemory |
std::string | m_TypeString |
std::string | m_UnitString |
Static Private Attributes | |
static ITK_CONSTEXPR_VAR unsigned int | tabwidth = 15 |
typedef SizeValueType itk::ResourceProbe< ValueType, MeanType >::CountType |
Type for counting how many times the probe has been started and stopped.
Definition at line 49 of file itkResourceProbe.h.
itk::ResourceProbe< ValueType, MeanType >::ResourceProbe | ( | const std::string & | type, |
const std::string & | unit | ||
) |
Constructor
|
virtual |
Destructor
|
virtual |
Print Probe Results.
|
pure virtual |
Returns the instant value of the probed system.
Implemented in itk::TimeProbe, and itk::MemoryProbe.
|
virtual |
Returns the max value changes between the starts and stops of the probe
|
virtual |
Returns the average value changes between the starts and stops of the probe. Stop() has to be called at least once, returns 0 otherwise.
|
virtual |
Returns the min value changes between the starts and stops of the probe
|
virtual |
Set name of probe
CountType itk::ResourceProbe< ValueType, MeanType >::GetNumberOfIteration | ( | ) | const |
Returns the number of iteration of the probe
CountType itk::ResourceProbe< ValueType, MeanType >::GetNumberOfStarts | ( | ) | const |
Returns the number of times that the probe has been started
CountType itk::ResourceProbe< ValueType, MeanType >::GetNumberOfStops | ( | ) | const |
Returns the number of times that the probe has been stopped
|
virtual |
Returns the standard deviation value changes between the starts and stops of the probe.
|
virtual |
Returns the standard deviation value changes between the starts and stops of the probe.
|
protectedvirtual |
Get System information
|
virtual |
Returns the accumulated value changes between the starts and stops of the probe
std::string itk::ResourceProbe< ValueType, MeanType >::GetType | ( | ) | const |
Returns the type probed value
std::string itk::ResourceProbe< ValueType, MeanType >::GetUnit | ( | ) | const |
Returns the unit probed value
|
virtual |
Print Probe Results.
|
protectedvirtual |
Print Probe Results.
|
virtual |
Print Probe Results.
|
protected |
Prints a varName: varValue pair.
|
protectedvirtual |
Print Probe Results.
|
virtual |
Print System information
|
virtual |
Print Probe Results.
|
virtual |
Reset the probe
|
virtual |
Set name of probe
|
virtual |
Start counting the change of value
|
virtual |
Stop counting the change of value.
If a matching Start() has not been called before, there is no effect.
|
protectedvirtual |
Update the Min and Max values with an input value
|
private |
Definition at line 192 of file itkResourceProbe.h.
|
private |
Definition at line 190 of file itkResourceProbe.h.
|
private |
Definition at line 187 of file itkResourceProbe.h.
|
private |
Definition at line 188 of file itkResourceProbe.h.
|
private |
Definition at line 162 of file itkResourceProbe.h.
|
private |
Definition at line 163 of file itkResourceProbe.h.
|
private |
Definition at line 161 of file itkResourceProbe.h.
|
private |
Definition at line 173 of file itkResourceProbe.h.
|
private |
Definition at line 169 of file itkResourceProbe.h.
|
private |
Definition at line 182 of file itkResourceProbe.h.
|
private |
Definition at line 181 of file itkResourceProbe.h.
|
private |
Definition at line 167 of file itkResourceProbe.h.
|
private |
Definition at line 168 of file itkResourceProbe.h.
|
private |
Definition at line 183 of file itkResourceProbe.h.
|
private |
Definition at line 186 of file itkResourceProbe.h.
|
private |
Definition at line 184 of file itkResourceProbe.h.
|
private |
Definition at line 185 of file itkResourceProbe.h.
|
private |
Definition at line 171 of file itkResourceProbe.h.
|
private |
Definition at line 179 of file itkResourceProbe.h.
|
private |
Definition at line 180 of file itkResourceProbe.h.
|
private |
Definition at line 178 of file itkResourceProbe.h.
|
private |
Definition at line 164 of file itkResourceProbe.h.
|
private |
Definition at line 165 of file itkResourceProbe.h.
|
private |
Definition at line 159 of file itkResourceProbe.h.
|
private |
Definition at line 177 of file itkResourceProbe.h.
|
private |
Definition at line 191 of file itkResourceProbe.h.
|
private |
Definition at line 160 of file itkResourceProbe.h.
|
private |
Definition at line 189 of file itkResourceProbe.h.
|
private |
Definition at line 174 of file itkResourceProbe.h.
|
private |
Definition at line 175 of file itkResourceProbe.h.
|
staticprivate |
Definition at line 194 of file itkResourceProbe.h.