utils
printmemusage.cpp
Go to the documentation of this file.
1
#include "
gmapping/utils/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
GMapping::printmemusage
void UTILS_EXPORT printmemusage()
Definition:
printmemusage.cpp:6
is
ifstream is(argv[c])
GMapping
Definition:
configfile.cpp:34
printmemusage.h
openslam_gmapping
Author(s): Cyrill Stachniss, Udo Frese, Giorgio Grisetti, Wolfram Burgard
autogenerated on Thu Oct 19 2023 02:25:51