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

itk::SmapsData_2_6 Class Reference

#include <itkSmapsFileParser.h>

Inheritance diagram for itk::SmapsData_2_6:

Inheritance graph
[legend]
Collaboration diagram for itk::SmapsData_2_6:

Collaboration graph
[legend]

List of all members.


Detailed Description

Read a smaps stream and return the memory usage information. Smaps files have been added since the linux kernel 2.6.

Definition at line 156 of file itkSmapsFileParser.h.


Public Types

typedef MapData::MemoryLoadType MemoryLoadType

Public Member Functions

bool Empty ()
virtual MemoryLoadType GetHeapUsage ()
virtual MemoryLoadType GetMemoryUsage (const char *filter, const char *token)
virtual MemoryLoadType GetStackUsage ()
virtual MemoryLoadType GetTotalMemoryUsage ()
virtual ~SmapsData_2_6 ()

Protected Types

typedef std::vector< MapRecord * > MapRecordVectorType

Protected Member Functions

void Reset (void)

Protected Attributes

bool m_HeapRecordFound
MapRecordVectorType m_Records

Friends

ITKCommon_EXPORT std::istream & operator>> (std::istream &smapsStream, SmapsData_2_6 &data)

Member Typedef Documentation

typedef std::vector< MapRecord* > itk::MapData::MapRecordVectorType [protected, inherited]

Definition at line 146 of file itkSmapsFileParser.h.

need an unsigned long type to be able to accumulate the SmapsRecord

Reimplemented from itk::MapData.

Definition at line 159 of file itkSmapsFileParser.h.


Constructor & Destructor Documentation

virtual itk::SmapsData_2_6::~SmapsData_2_6 (  )  [virtual]


Member Function Documentation

bool itk::MapData::Empty (  )  [inherited]

Returns true if the data has not been initialized yet

virtual MemoryLoadType itk::SmapsData_2_6::GetHeapUsage (  )  [virtual]

Returns the heap usage in kB of the process

Implements itk::MapData.

virtual MemoryLoadType itk::MapData::GetMemoryUsage ( const char *  filter,
const char *  token 
) [virtual, inherited]

Returns the memory usage in kB of a process segment

virtual MemoryLoadType itk::SmapsData_2_6::GetStackUsage (  )  [virtual]

Returns the stack usage in kB of the process

Implements itk::MapData.

virtual MemoryLoadType itk::MapData::GetTotalMemoryUsage (  )  [virtual, inherited]

Returns the total memory usage in kB of the process

void itk::MapData::Reset ( void   )  [protected, inherited]

Clear the content of the container


Friends And Related Function Documentation

ITKCommon_EXPORT std::istream& operator>> ( std::istream &  smapsStream,
SmapsData_2_6 data 
) [friend]

fill the smaps data


Member Data Documentation

Definition at line 174 of file itkSmapsFileParser.h.

contains all the segment records

Definition at line 149 of file itkSmapsFileParser.h.


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

Generated at Thu May 28 17:37:49 2009 for ITK by doxygen 1.5.5 written by Dimitri van Heesch, © 1997-2000