18 #ifndef __itkSmapsFileParser_h
19 #define __itkSmapsFileParser_h
55 std::map< std::string, MemoryLoadType >
m_Tokens;
178 friend ITKCommon_EXPORT std::istream &
operator>>(std::istream & smapsStream,
207 friend ITKCommon_EXPORT std::istream &
operator>>(std::istream & stream,
221 template<
typename TMapData >
232 virtual void ReadFile(
const std::string & mapFileLocation =
"") = 0;
270 template<
typename TSmapsDataType >
280 virtual void ReadFile(
const std::string & mapFileLocation =
"");
288 template<
typename TVMMapDataType >
296 virtual void ReadFile(
const std::string & mapFileLocation =
"");
300 #ifndef ITK_MANUAL_INSTANTIATION
301 #include "itkSmapsFileParser.hxx"
304 #endif // __itkSmapsFileParser_h
Base class for map data containers.
TMapData::MemoryLoadType MemoryLoadType
MapData::MemoryLoadType MemoryLoadType
virtual void ReadFile(const std::string &mapFileLocation="")
std::istream & operator>>(std::istream &is, Point< T, NPointDimension > &v)
Read the output of a vmmap command and extract the memory usage information. Used for MAC OS X machin...
unsigned long SizeValueType
SizeValueType MemoryLoadType
std::map< std::string, MemoryLoadType > m_Tokens
MemoryLoadType GetTotalMemoryUsage()
std::string m_MapFilePath
MemoryLoadType GetMemoryUsage(const char *filter, const char *token="Size")
An entry in a smaps file.
virtual void ReadFile(const std::string &mapFileLocation="")=0
Contains an entry in a smaps file.
MemoryLoadType GetStackUsage()
Read a smaps stream and return the memory usage information. Smaps files have been added since the li...
virtual ~SmapsFileParser()
MapData::MemoryLoadType MemoryLoadType
virtual void ReadFile(const std::string &mapFileLocation="")
SizeValueType MemoryLoadType
Contains an entry in a smaps file.
virtual ~VMMapFileParser()
Read a smap file (typically located in /proc/PID/smaps) and extract the memory usage information...
MemoryLoadType GetHeapUsage()
MapRecordVectorType m_Records
std::vector< MapRecord * > MapRecordVectorType
virtual MemoryLoadType GetMemoryUsage()