|
ITK
5.2.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkSmapsFileParser_h
19 #define itkSmapsFileParser_h
56 std::map<std::string, MemoryLoadType>
m_Tokens;
83 friend ITKCommon_EXPORT std::istream &
100 friend ITKCommon_EXPORT std::istream &
117 friend ITKCommon_EXPORT std::istream &
147 GetTotalMemoryUsage();
151 GetMemoryUsage(
const char * filter,
const char * token);
183 GetHeapUsage()
override;
187 GetStackUsage()
override;
190 friend ITKCommon_EXPORT std::istream &
214 GetHeapUsage()
override;
218 GetStackUsage()
override;
221 friend ITKCommon_EXPORT std::istream &
225 bool m_UsingSummary{
false };
235 template <
typename TMapData>
247 ReadFile(
const std::string & mapFileLocation =
"") = 0;
271 GetTotalMemoryUsage();
277 GetMemoryUsage(
const char * filter,
const char * token =
"Size");
290 template <
typename TSmapsDataType>
301 ReadFile(
const std::string & mapFileLocation =
"");
309 template <
typename TVMMapDataType>
318 ReadFile(
const std::string & mapFileLocation =
"");
322 #ifndef ITK_MANUAL_INSTANTIATION
323 # include "itkSmapsFileParser.hxx"
326 #endif // itkSmapsFileParser_h
MapRecordVectorType m_Records
std::map< std::string, MemoryLoadType > m_Tokens
SizeValueType MemoryLoadType
Base class for map data containers.
Contains an entry in a smaps file.
SizeValueType MemoryLoadType
typename TSmapsDataType ::MemoryLoadType MemoryLoadType
std::vector< MapRecord * > MapRecordVectorType
std::istream & operator>>(std::istream &is, Point< T, NPointDimension > &vct)
Read the output of a vmmap command and extract the memory usage information. Used for MAC OS X machin...
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.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Read a smap file (typically located in /proc/PID/smaps) and extract the memory usage information....
unsigned long SizeValueType
std::string m_MapFilePath