printmemusage.cpp
Go to the documentation of this file.
1 #include "printmemusage.h"
2 
3 namespace GMapping{
4 
5 using namespace std;
6 void printmemusage(){
7  pid_t pid=getpid();
8  char procfilename[1000];
9  sprintf(procfilename, "/proc/%d/status", pid);
10  ifstream is(procfilename);
11  string line;
12  while (is){
13  is >> line;
14  if (line=="VmData:"){
15  is >> line;
16  cerr << "#VmData:\t" << line << endl;
17  }
18  if (line=="VmSize:"){
19  is >> line;
20  cerr << "#VmSize:\t" << line << endl;
21  }
22 
23  }
24 }
25 
26 };
27 
void printmemusage()
ifstream is(argv[c])


openslam_gmapping
Author(s): Giorgio Grisetti, Cyrill Stachniss, Wolfram Burgard
autogenerated on Mon Jun 10 2019 14:04:22