Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::VMMapFileParser< TVMMapDataType > Class Template Reference

#include <itkSmapsFileParser.h>

Inheritance diagram for itk::VMMapFileParser< TVMMapDataType >:

Inheritance graph
[legend]
Collaboration diagram for itk::VMMapFileParser< TVMMapDataType >:

Collaboration graph
[legend]
List of all members.

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 275 of file 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


Member Typedef Documentation

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

Definition at line 212 of file itkSmapsFileParser.h.


Constructor & Destructor Documentation

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


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


Member Data Documentation

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.


The documentation for this class was generated from the following file:
Generated at Thu Nov 6 12:49:06 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000