Read the output of a vmmap command and extract the memory usage information. Used for MAC OS X machines. More...
#include <itkSmapsFileParser.h>
Public Types | |
typedef TVMMapDataType::MemoryLoadType | MemoryLoadType |
Public Member Functions | |
MemoryLoadType | GetHeapUsage () |
MemoryLoadType | GetMemoryUsage (const char *filter, const char *token="Size") |
MemoryLoadType | GetStackUsage () |
MemoryLoadType | GetTotalMemoryUsage () |
virtual void | ReadFile (const std::string &mapFileLocation="") |
bool | Update (void) |
virtual | ~VMMapFileParser () |
Protected Attributes | |
TVMMapDataType | m_MapData |
std::string | m_MapFilePath |
Read the output of a vmmap command and extract the memory usage information. Used for MAC OS X machines.
Definition at line 275 of file itkSmapsFileParser.h.
typedef TVMMapDataType ::MemoryLoadType itk::MapFileParser< TVMMapDataType >::MemoryLoadType [inherited] |
Definition at line 212 of file itkSmapsFileParser.h.
virtual itk::VMMapFileParser< TVMMapDataType >::~VMMapFileParser | ( | ) | [virtual] |
MemoryLoadType itk::MapFileParser< TVMMapDataType >::GetHeapUsage | ( | ) | [inherited] |
Returns the heap usage in kB of the process. If no file has been loaded yet, load a default file.
MemoryLoadType itk::MapFileParser< TVMMapDataType >::GetMemoryUsage | ( | const char * | filter, | |
const char * | token = "Size" | |||
) | [inherited] |
Returns the memory usage in kB of a process segment. If no file has been loaded yet, load a default file.
MemoryLoadType itk::MapFileParser< TVMMapDataType >::GetStackUsage | ( | ) | [inherited] |
Returns the heap usage in kB of the process. If no file has been loaded yet, load a default file.
MemoryLoadType itk::MapFileParser< TVMMapDataType >::GetTotalMemoryUsage | ( | ) | [inherited] |
Returns the total memory usage in kB of a process. If no file has been loaded yet, load a default file.
virtual void itk::VMMapFileParser< TVMMapDataType >::ReadFile | ( | const std::string & | mapFileLocation = "" |
) | [virtual] |
If no vmmap file, create one using "vmmap pid" command Throw an exception is the file can't be created/opened.
Implements itk::MapFileParser< TVMMapDataType >.
bool itk::MapFileParser< TVMMapDataType >::Update | ( | void | ) | [inherited] |
ReRead the last parsed file to refresh the memory usage. Returns true if read from the default location "".
TVMMapDataType itk::MapFileParser< TVMMapDataType >::m_MapData [protected, inherited] |
Definition at line 248 of file itkSmapsFileParser.h.
std::string itk::MapFileParser< TVMMapDataType >::m_MapFilePath [protected, inherited] |
Definition at line 247 of file itkSmapsFileParser.h.