Orfeo Toolbox  3.16
Public Types | Public Member Functions | Protected Attributes
itk::VMMapFileParser< TVMMapDataType > Class Template Reference

Read the output of a vmmap command and extract the memory usage information. Used for MAC OS X machines. More...

#include <itkSmapsFileParser.h>

+ Inheritance diagram for itk::VMMapFileParser< TVMMapDataType >:
+ Collaboration diagram for itk::VMMapFileParser< TVMMapDataType >:

List of all members.

Public Types

typedef
TVMMapDataType::MemoryLoadType 
MemoryLoadType

Public Member Functions

virtual ~VMMapFileParser ()
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)

Protected Attributes

TVMMapDataType m_MapData
std::string m_MapFilePath

Detailed Description

template<class TVMMapDataType>
class itk::VMMapFileParser< TVMMapDataType >

Read the output of a vmmap command and extract the memory usage information. Used for MAC OS X machines.

Definition at line 265 of file itkSmapsFileParser.h.


Member Typedef Documentation

typedef TVMMapDataType ::MemoryLoadType itk::MapFileParser< TVMMapDataType >::MemoryLoadType
inherited

Definition at line 206 of file itkSmapsFileParser.h.


Constructor & Destructor Documentation

template<class TVMMapDataType >
itk::VMMapFileParser< TVMMapDataType >::~VMMapFileParser ( )
virtual

Definition at line 157 of file itkSmapsFileParser.txx.


Member Function Documentation

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.

template<class TVMMapDataType >
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 >.

Definition at line 163 of file itkSmapsFileParser.txx.

References NULL.

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 "".


Member Data Documentation

TVMMapDataType itk::MapFileParser< TVMMapDataType >::m_MapData
protectedinherited

Definition at line 238 of file itkSmapsFileParser.h.

std::string itk::MapFileParser< TVMMapDataType >::m_MapFilePath
protectedinherited

Definition at line 237 of file itkSmapsFileParser.h.


The documentation for this class was generated from the following files:

Generated at Sun Feb 3 2013 02:50:47 for Orfeo Toolbox with doxygen 1.8.1.1