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

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

Member Typedef Documentation

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

Definition at line 153 of file itkSmapsFileParser.h.

Definition at line 167 of file itkSmapsFileParser.h.

Constructor & Destructor Documentation

itk::SmapsData_2_6::~SmapsData_2_6 ( )
virtual

— SmapsData —

Definition at line 368 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 350 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 399 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 342 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 413 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 334 of file itkSmapsFileParser.cxx.

References itk::MapData::m_Records.

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

Clear the content of the container

Definition at line 360 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 371 of file itkSmapsFileParser.cxx.

Member Data Documentation

bool itk::SmapsData_2_6::m_HeapRecordFound
protected

Definition at line 182 of file itkSmapsFileParser.h.

MapRecordVectorType itk::MapData::m_Records
protectedinherited

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

Generated at Sat Mar 8 2014 17:45:36 for Orfeo Toolbox with doxygen 1.8.3.1