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>
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) |
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.
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.
virtual itk::SmapsData_2_6::~SmapsData_2_6 | ( | ) | [virtual] |
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
ITKCommon_EXPORT std::istream& operator>> | ( | std::istream & | smapsStream, | |
SmapsData_2_6 & | data | |||
) | [friend] |
fill the smaps data
bool itk::SmapsData_2_6::m_HeapRecordFound [protected] |
Definition at line 174 of file itkSmapsFileParser.h.
MapRecordVectorType itk::MapData::m_Records [protected, inherited] |
contains all the segment records
Definition at line 149 of file itkSmapsFileParser.h.