Orfeo Toolbox  3.16
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends
itk::SmapsData_2_6 Class Reference

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

#include <itkSmapsFileParser.h>

+ Inheritance diagram for itk::SmapsData_2_6:
+ Collaboration diagram for itk::SmapsData_2_6:

List of all members.

Public Types

typedef MapData::MemoryLoadType MemoryLoadType

Public Member Functions

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

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)

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


Member Typedef Documentation

typedef std::vector< MapRecord* > itk::MapData::MapRecordVectorType
protectedinherited

Definition at line 142 of file itkSmapsFileParser.h.

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

Reimplemented from itk::MapData.

Definition at line 155 of file itkSmapsFileParser.h.


Constructor & Destructor Documentation

itk::SmapsData_2_6::~SmapsData_2_6 ( )
virtual

— SmapsData —

Definition at line 363 of file itkSmapsFileParser.cxx.


Member Function Documentation

bool itk::MapData::Empty ( )
inherited

Returns true if the data has not been initialized yet

is the data empty ?

Definition at line 345 of file itkSmapsFileParser.cxx.

References itk::MapData::m_Records.

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

Returns the heap usage in kB of the process

Implements itk::MapData.

Definition at line 394 of file itkSmapsFileParser.cxx.

References itk::MapData::GetMemoryUsage().

MapData::MemoryLoadType itk::MapData::GetMemoryUsage ( const char *  filter,
const char *  token 
)
virtualinherited

Returns the memory usage in kB of a process segment

Definition at line 339 of file itkSmapsFileParser.cxx.

References itk::MapData::m_Records.

Referenced by GetHeapUsage(), itk::VMMapData_10_2::GetHeapUsage(), GetStackUsage(), and itk::VMMapData_10_2::GetStackUsage().

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

Returns the stack usage in kB of the process

Implements itk::MapData.

Definition at line 407 of file itkSmapsFileParser.cxx.

References itk::MapData::GetMemoryUsage().

MapData::MemoryLoadType itk::MapData::GetTotalMemoryUsage ( )
virtualinherited

Returns the total memory usage in kB of the process

Definition at line 333 of file itkSmapsFileParser.cxx.

References itk::MapData::m_Records.

void itk::MapData::Reset ( void  )
protectedinherited

Clear the content of the container

Definition at line 355 of file itkSmapsFileParser.cxx.

References itk::DeleteMapRecord(), and itk::MapData::m_Records.

Referenced by itk::operator>>(), and itk::MapData::~MapData().


Friends And Related Function Documentation

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

fill the smaps data

Definition at line 367 of file itkSmapsFileParser.cxx.


Member Data Documentation

bool itk::SmapsData_2_6::m_HeapRecordFound
protected

Definition at line 169 of file itkSmapsFileParser.h.

MapRecordVectorType itk::MapData::m_Records
protectedinherited

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

Generated at Sun Feb 3 2013 02:34:28 for Orfeo Toolbox with doxygen 1.8.1.1