Orfeo Toolbox  4.0
Public Types | Public Member Functions | Protected Attributes | List of all members
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 >:

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<typename 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 289 of file itkSmapsFileParser.h.

Member Typedef Documentation

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

Definition at line 225 of file itkSmapsFileParser.h.

Constructor & Destructor Documentation

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

Definition at line 150 of file itkSmapsFileParser.hxx.

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<typename 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 155 of file itkSmapsFileParser.hxx.

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 261 of file itkSmapsFileParser.h.

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

Definition at line 260 of file itkSmapsFileParser.h.


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

Generated at Sat Mar 8 2014 17:59:23 for Orfeo Toolbox with doxygen 1.8.3.1