18 #ifndef itkSmapsFileParser_h
19 #define itkSmapsFileParser_h
55 std::map< std::string, MemoryLoadType >
m_Tokens;
143 virtual MemoryLoadType GetMemoryUsage(
const char *filter,
const char *token);
178 friend ITKCommon_EXPORT std::istream &
operator>>(std::istream & smapsStream,
207 friend ITKCommon_EXPORT std::istream &
operator>>(std::istream & stream,
211 bool m_UsingSummary{
false};
221 template<
typename TMapData >
232 virtual void ReadFile(
const std::string & mapFileLocation =
"") = 0;
257 MemoryLoadType GetMemoryUsage(
const char *filter,
const char *token =
"Size");
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.
std::istream & operator>>(std::istream &is, Point< T, NPointDimension > &v)
unsigned long SizeValueType
std::vector< MapRecord * > MapRecordVectorType
Read the output of a vmmap command and extract the memory usage information. Used for MAC OS X machin...
std::map< std::string, MemoryLoadType > m_Tokens
std::string m_MapFilePath
An entry in a smaps file.
Contains an entry in a smaps file.
Read a smaps stream and return the memory usage information. Smaps files have been added since the li...
Contains an entry in a smaps file.
SizeValueType MemoryLoadType
Read a smap file (typically located in /proc/PID/smaps) and extract the memory usage information...
MapRecordVectorType m_Records
typename TSmapsDataType::MemoryLoadType MemoryLoadType
SizeValueType MemoryLoadType