ITK
4.6.0
Insight Segmentation and Registration Toolkit
|
#include <itkMemoryProbe.h>
Computes the memory allocated between two points in code.
This class allows the user to trace the memory charge between the execution of two pieces of code. It can be started and stopped in order to evaluate the execution over multiple passes. The values of memory are taken from GetProcessMemoryInfo() for Windows, the SMAPS file for Linux and getrusage() otherwise.
Definition at line 39 of file itkMemoryProbe.h.
Public Types | |
typedef double | MeanMemoryLoadType |
typedef SizeValueType | MemoryLoadType |
Public Types inherited from itk::ResourceProbe< SizeValueType, double > | |
typedef SizeValueType | CountType |
Public Member Functions | |
MemoryProbe () | |
~MemoryProbe () | |
Public Member Functions inherited from itk::ResourceProbe< SizeValueType, double > | |
double | GetMean (void) const |
CountType | GetNumberOfStarts (void) const |
CountType | GetNumberOfStops (void) const |
SizeValueType | GetTotal (void) const |
std::string | GetType (void) const |
std::string | GetUnit (void) const |
void | Reset (void) |
ResourceProbe (const std::string &type, const std::string &unit) | |
void | Start (void) |
void | Stop (void) |
virtual | ~ResourceProbe () |
Protected Member Functions | |
virtual MemoryLoadType | GetInstantValue (void) const ITK_OVERRIDE |
Private Attributes | |
MemoryUsageObserver | m_MemoryObserver |
typedef double itk::MemoryProbe::MeanMemoryLoadType |
Type for measuring the average memory.
Definition at line 51 of file itkMemoryProbe.h.
Type for measuring memory.
Definition at line 48 of file itkMemoryProbe.h.
itk::MemoryProbe::MemoryProbe | ( | ) |
itk::MemoryProbe::~MemoryProbe | ( | ) |
|
protectedvirtual |
Returns the instant value of the probed system.
Implements itk::ResourceProbe< SizeValueType, double >.
|
mutableprivate |
Definition at line 57 of file itkMemoryProbe.h.