ITK  6.0.0
Insight Toolkit
Public Member Functions | List of all members
itk::SmapsFileParser< TSmapsDataType > Class Template Reference

#include <itkSmapsFileParser.h>

Detailed Description

template<typename TSmapsDataType>
class itk::SmapsFileParser< TSmapsDataType >

Read a smap file (typically located in /proc/PID/smaps) and extract the memory usage information. Any smaps data reader can be used in template as long as they implement a operator>>(istream&) and have GetXXXUsage() methods.

Definition at line 291 of file itkSmapsFileParser.h.

+ Inheritance diagram for itk::SmapsFileParser< TSmapsDataType >:
+ Collaboration diagram for itk::SmapsFileParser< TSmapsDataType >:

Public Member Functions

virtual void ReadFile (const std::string &mapFileLocation="")
 
virtual ~SmapsFileParser ()=default
 
- Public Member Functions inherited from itk::MapFileParser< TSmapsDataType >
MemoryLoadType GetHeapUsage ()
 
MemoryLoadType GetMemoryUsage (const char *filter, const char *token="Size")
 
MemoryLoadType GetStackUsage ()
 
MemoryLoadType GetTotalMemoryUsage ()
 
bool Update ()
 
virtual ~MapFileParser ()=default
 

Additional Inherited Members

- Public Types inherited from itk::MapFileParser< TSmapsDataType >
using MemoryLoadType = typename TSmapsDataType ::MemoryLoadType
 
- Protected Attributes inherited from itk::MapFileParser< TSmapsDataType >
TSmapsDataType m_MapData
 
std::string m_MapFilePath
 

Constructor & Destructor Documentation

◆ ~SmapsFileParser()

template<typename TSmapsDataType >
virtual itk::SmapsFileParser< TSmapsDataType >::~SmapsFileParser ( )
virtualdefault

Member Function Documentation

◆ ReadFile()

template<typename TSmapsDataType >
virtual void itk::SmapsFileParser< TSmapsDataType >::ReadFile ( const std::string &  mapFileLocation = "")
virtual

Load and parse the smaps file pointed by smapsFileLocation. If smapsFileLocation is empty, load the file located at "/proc/" + PID + "/smaps" Throw an exception is the file can't be opened.

Implements itk::MapFileParser< TSmapsDataType >.


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