#include <ProcInfoFetcher.h>
Definition at line 44 of file ProcInfoFetcher.h.
ProcInfoFetcher::ProcInfoFetcher |
( |
| ) |
|
ProcInfoFetcher::~ProcInfoFetcher |
( |
| ) |
|
ProcInfo ProcInfoFetcher::fetch |
( |
| ) |
const |
Definition at line 191 of file ProcInfoFetcher.cc.
References buf_, fd_, pg_size_, SiPixelLorentzAngle_cfi::read, run_regression::ret, edm::service::ProcInfo::rss, and edm::service::ProcInfo::vsize.
Referenced by edm::service::ResourceEnforcer::check(), and edm::service::SimpleMemoryCheck::fetch().
195 double pr_size = 0.0, pr_rssize = 0.0;
200 lseek(
fd_, 0, SEEK_SET);
203 perror(
"Read of Proc file failed:");
212 Fetcher fetcher(
buf_);
248 }
catch (boost::bad_lexical_cast& iE) {
249 LogWarning(
"ProcInfoFetcher")<<
"Parsing of Prof file failed:"<<iE.what()<<std::endl;
254 pr_size = (double)pinfo.vsize;
255 pr_rssize = (
double)pinfo.rss;
257 ret.vsize = pr_size / (1024.0*1024.0);
258 ret.rss = (pr_rssize *
pg_size_) / (1024.0*1024.0);
char edm::service::ProcInfoFetcher::buf_[500] |
|
mutableprivate |
int edm::service::ProcInfoFetcher::fd_ |
|
private |
double edm::service::ProcInfoFetcher::pg_size_ |
|
private |