![]() |
ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkSmapsFileParser.h>
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 271 of file itkSmapsFileParser.h.
Public Member Functions | |
virtual void | ReadFile (const std::string &mapFileLocation="") |
virtual | ~SmapsFileParser () |
![]() | |
MemoryLoadType | GetHeapUsage () |
MemoryLoadType | GetMemoryUsage (const char *filter, const char *token="Size") |
MemoryLoadType | GetStackUsage () |
MemoryLoadType | GetTotalMemoryUsage () |
bool | Update () |
virtual | ~MapFileParser () |
Additional Inherited Members | |
![]() | |
typedef TSmapsDataType::MemoryLoadType | MemoryLoadType |
![]() | |
TSmapsDataType | m_MapData |
std::string | m_MapFilePath |
|
virtual |
|
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 >.