44 while(!(std::getline(in,
line).eof())){
49 sscanf(
line.c_str(),
"%19s%n",
buff,&len);
50 if(strcmp(
buff,
"VmFlags:")==0){
52 while(len<(
int)
line.size()){
58 sscanf(
line.c_str()+len,
"%8lu",&
val);
70 snprintf(
buff,2048,
"VMem= %8lld, RSS= %8lld, PSS= %8lld, Shared= %8lld, Private= %8lld, Swap= %8lld Anon= %8lld",
71 m.m_vals[0],
m.m_vals[1],
m.m_vals[2],
m.m_vals[3]+
m.m_vals[4],
m.m_vals[5]+
m.m_vals[6],
m.m_vals[10],
m.m_vals[8]);
79 "Shared_Clean: %8lld kB\n" \
80 "Shared_Dirty: %8lld kB\n" \
81 "Private_Clean: %8lld kB\n" \
82 "Private_Dirty: %8lld kB\n" \
83 "Referenced: %8lld kB\n" \
84 "Anonymous: %8lld kB\n" \
85 "AnonHugePages: %8lld kB\n" \
87 "KernelPageSize: %8lld kB\n" \
88 "MMUPageSize: %8lld kB\n" \