20 gSystem->GetProcInfo(&procinfo);
21 return procinfo.fMemResident;
46 cout <<
"Snapshot name: " << name <<
", mem: " <<
GetRSSMemory() << endl;
58 iter->second = RSSMemory;
62 mStartMem.insert(make_pair(name, RSSMemory));
66 cout <<
"Start name: " << name <<
", mem: " << RSSMemory << endl;
77 int diff = RSSMemory - iter->second;
81 iterM->second.push_back(diff);
91 cout <<
"Stop name: " << name <<
", mem: " << RSSMemory <<
", diff: " << diff << endl;
99 string name = trackername;
102 name = group +
"_" +
name;
109 map<string, std::vector<int>>::const_iterator iter;
114 cout << iter->first <<
": ";
115 vector<int> memvec = iter->second;
116 for (
auto vit = memvec.begin(); vit != memvec.end(); ++vit)
128 cout <<
"SubsysReco/OutputManager: " << iter->first << endl;
129 vector<int> memvec = iter->second;
130 for (
auto vit = memvec.begin(); vit != memvec.end(); ++vit)
138 cout <<
"No Memory Tracker with name " << name <<
" found" << endl;
139 cout <<
"Existing Memory Trackers:" << endl;
142 cout << iter->first << endl;
155 memvec = iter->second;