#include <ProcInfoFetcher.h>
Definition at line 44 of file ProcInfoFetcher.h.
ProcInfoFetcher::ProcInfoFetcher |
( |
| ) |
|
ProcInfoFetcher::~ProcInfoFetcher |
( |
| ) |
|
ProcInfo ProcInfoFetcher::fetch |
( |
| ) |
const |
Definition at line 196 of file ProcInfoFetcher.cc.
References buf_, fd_, pg_size_, SiPixelLorentzAngle_cfi::read, runTheMatrix::ret, edm::service::ProcInfo::rss, and edm::service::ProcInfo::vsize.
Referenced by edm::service::ResourceEnforcer::check(), and edm::service::SimpleMemoryCheck::fetch().
200 double pr_size = 0.0, pr_rssize = 0.0;
205 lseek(
fd_, 0, SEEK_SET);
208 perror(
"Read of Proc file failed:");
217 Fetcher fetcher(
buf_);
253 }
catch (boost::bad_lexical_cast& iE) {
254 LogWarning(
"ProcInfoFetcher")<<
"Parsing of Prof file failed:"<<iE.what()<<std::endl;
259 pr_size = (double)pinfo.vsize;
260 pr_rssize = (
double)pinfo.rss;
262 ret.vsize = pr_size / (1024.0*1024.0);
263 ret.rss = (pr_rssize *
pg_size_) / (1024.0*1024.0);
tuple ret
prodAgent to be discontinued
char edm::service::ProcInfoFetcher::buf_[500] |
|
mutableprivate |
int edm::service::ProcInfoFetcher::fd_ |
|
private |
double edm::service::ProcInfoFetcher::pg_size_ |
|
private |