#include "WireCellUtil/MemUsage.h"
#include <unistd.h>
#include <sstream>
Go to the source code of this file.
static double memusage_linux_resident |
( |
| ) |
|
|
static |
Definition at line 9 of file MemUsage.cxx.
10 int tSize = 0, resident = 0, share = 0;
11 ifstream
buffer(
"/proc/self/statm");
12 buffer >> tSize >> resident >> share;
15 long page_size_kb = sysconf(_SC_PAGE_SIZE) / 1024;
16 double rss = resident * page_size_kb;
internal::basic_buffer< FMT_CHAR(S)> buffer
static double memusage_linux_shared |
( |
| ) |
|
|
static |
Definition at line 20 of file MemUsage.cxx.
21 int tSize = 0, resident = 0, share = 0;
22 ifstream
buffer(
"/proc/self/statm");
23 buffer >> tSize >> resident >> share;
26 long page_size_kb = sysconf(_SC_PAGE_SIZE) / 1024;
27 double shm = share * page_size_kb;
internal::basic_buffer< FMT_CHAR(S)> buffer
static double memusage_linux_size |
( |
| ) |
|
|
static |
Definition at line 31 of file MemUsage.cxx.
32 int tSize = 0, resident = 0, share = 0;
33 ifstream
buffer(
"/proc/self/statm");
34 buffer >> tSize >> resident >> share;
37 long page_size_kb = sysconf(_SC_PAGE_SIZE) / 1024;
38 double siz = tSize * page_size_kb;
internal::basic_buffer< FMT_CHAR(S)> buffer