18 gSystem->GetProcInfo(&procinfo);
19 return procinfo.fMemResident;
38 std::vector<int> mvec;
44 std::cout <<
"Snapshot name: " << name <<
", mem: " <<
GetRSSMemory() << std::endl;
56 iter->second = RSSMemory;
60 mStartMem.insert(make_pair(name, RSSMemory));
64 std::cout <<
"Start name: " << name <<
", mem: " << RSSMemory << std::endl;
75 int diff = RSSMemory - iter->second;
79 iterM->second.push_back(diff);
83 std::vector<int> mvec;
89 std::cout <<
"Stop name: " << name <<
", mem: " << RSSMemory <<
", diff: " << diff << std::endl;
100 name = group +
"_" +
name;
107 std::map<std::string, std::vector<int>>::const_iterator iter;
112 std::cout << iter->first <<
": ";
113 std::vector<int> memvec = iter->second;
114 for (
int &vit : memvec)
116 std::cout << vit <<
" ";
118 std::cout << std::endl;
126 std::cout <<
"SubsysReco/OutputManager: " << iter->first << std::endl;
127 std::vector<int> memvec = iter->second;
128 for (
int &vit : memvec)
130 std::cout << vit <<
" ";
132 std::cout << std::endl;
136 std::cout <<
"No Memory Tracker with name " << name <<
" found" << std::endl;
137 std::cout <<
"Existing Memory Trackers:" << std::endl;
140 std::cout << iter->first << std::endl;
149 std::vector<int> memvec;
153 memvec = iter->second;