18 #ifndef itkSmapsFileParser_h
19 #define itkSmapsFileParser_h
50 std::string m_RecordName{};
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 &
194 bool m_HeapRecordFound{};
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");
280 std::string m_MapFilePath{};
281 TMapData m_MapData{};
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