22 std::ostringstream is;
24 std::string spid=is.str();
25 std::string filename=
"mem"+spid+
".txt";
26 std::string temp=
"cat /proc/"+spid+
"/status | grep VmSize >"+filename;
28 std::ifstream in(filename.c_str());
29 std::string text,mem,text1;
31 temp=
"rm -f "+filename;
33 float memsize=atof(mem.c_str());
35 std::cout <<
"* Memory snooper called at " << where
36 <<
" with VMEM: " <<
imem <<
"kB" << std::endl;