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

itk::SmapsData_2_6< TMapRecord > Class Template Reference

#include <itkSmapsFileParser.h>

Inheritance diagram for itk::SmapsData_2_6< TMapRecord >:

Inheritance graph
[legend]
Collaboration diagram for itk::SmapsData_2_6< TMapRecord >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class TMapRecord>
class itk::SmapsData_2_6< TMapRecord >

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

Definition at line 153 of file itkSmapsFileParser.h.

Public Types

typedef MapData< TMapRecord
>::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 TMapRecord MapRecordType
typedef std::vector< MapRecordTypeMapRecordVectorType

Protected Member Functions

void Reset (void)

Protected Attributes

bool m_HeapRecordFound
MapRecordVectorType m_Records

Friends

template<class TSmapsRecordType>
ITK_EXPORT std::istream & operator>> (std::istream &smapsStream, SmapsData_2_6< TSmapsRecordType > &data)


Member Typedef Documentation

template<class TMapRecord>
typedef TMapRecord itk::MapData< TMapRecord >::MapRecordType [protected, inherited]

Definition at line 141 of file itkSmapsFileParser.h.

template<class TMapRecord>
typedef std::vector< MapRecordType > itk::MapData< TMapRecord >::MapRecordVectorType [protected, inherited]

Definition at line 142 of file itkSmapsFileParser.h.

template<class TMapRecord>
typedef MapData<TMapRecord>::MemoryLoadType itk::SmapsData_2_6< TMapRecord >::MemoryLoadType

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

Reimplemented from itk::MapData< TMapRecord >.

Definition at line 156 of file itkSmapsFileParser.h.


Constructor & Destructor Documentation

template<class TMapRecord>
virtual itk::SmapsData_2_6< TMapRecord >::~SmapsData_2_6 (  )  [virtual]


Member Function Documentation

template<class TMapRecord>
bool itk::MapData< TMapRecord >::Empty (  )  [inherited]

Returns true if the data has not been initialized yet

template<class TMapRecord>
virtual MemoryLoadType itk::SmapsData_2_6< TMapRecord >::GetHeapUsage (  )  [virtual]

Returns the heap usage in kB of the process

Implements itk::MapData< TMapRecord >.

template<class TMapRecord>
virtual MemoryLoadType itk::SmapsData_2_6< TMapRecord >::GetMemoryUsage ( const char *  filter,
const char *  token 
) [virtual]

Returns the memory usage in kB of a process segment. Typically, token == "Size"

Implements itk::MapData< TMapRecord >.

template<class TMapRecord>
virtual MemoryLoadType itk::SmapsData_2_6< TMapRecord >::GetStackUsage (  )  [virtual]

Returns the stack usage in kB of the process

Implements itk::MapData< TMapRecord >.

template<class TMapRecord>
virtual MemoryLoadType itk::SmapsData_2_6< TMapRecord >::GetTotalMemoryUsage (  )  [virtual]

Returns the total memory usage in kB of the process

Implements itk::MapData< TMapRecord >.

template<class TMapRecord>
void itk::MapData< TMapRecord >::Reset ( void   )  [protected, inherited]

Clear the content of the container


Friends And Related Function Documentation

template<class TMapRecord>
template<class TSmapsRecordType>
ITK_EXPORT std::istream& operator>> ( std::istream &  smapsStream,
SmapsData_2_6< TSmapsRecordType > &  data 
) [friend]

fill the smaps data


Member Data Documentation

template<class TMapRecord>
bool itk::SmapsData_2_6< TMapRecord >::m_HeapRecordFound [protected]

Definition at line 180 of file itkSmapsFileParser.h.

template<class TMapRecord>
MapRecordVectorType itk::MapData< TMapRecord >::m_Records [protected, inherited]

contains all the segment records

Definition at line 145 of file itkSmapsFileParser.h.


The documentation for this class was generated from the following file:
Generated at Mon Apr 14 22:15:58 2008 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000