#include <MemorySnooper.h>
Definition at line 16 of file MemorySnooper.h.
◆ MemorySnooper()
MemorySnooper::MemorySnooper |
( |
std::string |
where | ) |
|
|
inline |
Definition at line 19 of file MemorySnooper.h.
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;
29 std::string
text,mem,text1;
33 float memsize=
atof(mem.c_str());
35 std::cout <<
"* Memory snooper called at " <<
where
36 <<
" with VMEM: " <<
imem <<
"kB" << std::endl;
◆ GetMemorySize()
int MemorySnooper::GetMemorySize |
( |
| ) |
const |
|
inline |
◆ imem
The documentation for this class was generated from the following file: