#include <CPUTimer.h>
Classes | |
struct | Times |
Public Member Functions | |
void | add (const Times &t) |
double | cpuTime () const |
CPUTimer () | |
double | realTime () const |
void | reset () |
void | start () |
Times | stop () |
virtual | ~CPUTimer () |
Private Types | |
enum | State { kRunning, kStopped } |
Private Member Functions | |
Times | calculateDeltaTime () const |
CPUTimer (const CPUTimer &) | |
const CPUTimer & | operator= (const CPUTimer &) |
Private Attributes | |
double | accumulatedCPUTime_ |
double | accumulatedRealTime_ |
struct timeval | startCPUTime_ |
struct timeval | startRealTime_ |
enum edm::CPUTimer::State | state_ |
Definition at line 40 of file CPUTimer.h.
|
private |
Enumerator | |
---|---|
kRunning | |
kStopped |
Definition at line 74 of file CPUTimer.h.
CPUTimer::CPUTimer | ( | ) |
Definition at line 33 of file CPUTimer.cc.
References startCPUTime_, and startRealTime_.
|
virtual |
Definition at line 56 of file CPUTimer.cc.
|
private |
void CPUTimer::add | ( | const Times & | t | ) |
Definition at line 113 of file CPUTimer.cc.
References accumulatedCPUTime_, accumulatedRealTime_, edm::CPUTimer::Times::cpu_, and edm::CPUTimer::Times::real_.
Referenced by edm::RunDualStopwatches::~RunDualStopwatches().
|
private |
Definition at line 119 of file CPUTimer.cc.
References CLOCK_PROCESS_CPUTIME_ID, CLOCK_REALTIME, edm::CPUTimer::Times::cpu_, edm::hlt::Exception, edm::CPUTimer::Times::real_, startCPUTime_, and startRealTime_.
Referenced by cpuTime(), realTime(), and stop().
double CPUTimer::cpuTime | ( | ) | const |
Definition at line 158 of file CPUTimer.cc.
References accumulatedCPUTime_, calculateDeltaTime(), edm::CPUTimer::Times::cpu_, kStopped, and state_.
Referenced by ZDCMonitorModule::analyze(), CastorMonitorModule::analyze(), edm::service::PathTimerService::postModule(), CastorHIMonitor::processEvent(), CastorRecHitMonitor::processEvent(), CastorPSMonitor::processEvent(), CastorDigiMonitor::processEvent(), CastorEventDisplay::processEvent(), HcalBaseMonitor::setupDepthHists1D(), and HcalBaseMonitor::setupDepthHists2D().
double CPUTimer::realTime | ( | ) | const |
Definition at line 150 of file CPUTimer.cc.
References accumulatedRealTime_, calculateDeltaTime(), kStopped, edm::CPUTimer::Times::real_, and state_.
Referenced by edm::service::ResourceEnforcer::check(), and edm::service::PathTimerService::postModule().
void CPUTimer::reset | ( | void | ) |
Definition at line 107 of file CPUTimer.cc.
References accumulatedCPUTime_, and accumulatedRealTime_.
Referenced by ZDCMonitorModule::analyze(), CastorMonitorModule::analyze(), edm::service::PathTimerService::postModule(), edm::service::PathTimerService::preModule(), CastorHIMonitor::processEvent(), CastorRecHitMonitor::processEvent(), CastorPSMonitor::processEvent(), CastorDigiMonitor::processEvent(), HcalZDCMonitor::processEvent(), CastorEventDisplay::processEvent(), HcalZDCMonitor::setup(), HcalBaseMonitor::setupDepthHists1D(), and HcalBaseMonitor::setupDepthHists2D().
void CPUTimer::start | ( | void | ) |
Definition at line 74 of file CPUTimer.cc.
References CLOCK_PROCESS_CPUTIME_ID, CLOCK_REALTIME, edm::hlt::Exception, kRunning, kStopped, startCPUTime_, startRealTime_, and state_.
Referenced by progressbar.ProgressBar::__next__(), ZDCMonitorModule::analyze(), CastorMonitorModule::analyze(), edm::service::PathTimerService::preModule(), CastorHIMonitor::processEvent(), CastorRecHitMonitor::processEvent(), CastorPSMonitor::processEvent(), CastorDigiMonitor::processEvent(), HcalZDCMonitor::processEvent(), CastorEventDisplay::processEvent(), edm::service::ResourceEnforcer::ResourceEnforcer(), HcalZDCMonitor::setup(), HcalBaseMonitor::setupDepthHists1D(), and HcalBaseMonitor::setupDepthHists2D().
CPUTimer::Times CPUTimer::stop | ( | ) |
Definition at line 94 of file CPUTimer.cc.
References accumulatedCPUTime_, accumulatedRealTime_, calculateDeltaTime(), edm::CPUTimer::Times::cpu_, kRunning, kStopped, edm::CPUTimer::Times::real_, state_, and lumiQTWidget::t.
Referenced by ZDCMonitorModule::analyze(), CastorMonitorModule::analyze(), edm::service::PathTimerService::postModule(), CastorHIMonitor::processEvent(), CastorRecHitMonitor::processEvent(), CastorPSMonitor::processEvent(), CastorDigiMonitor::processEvent(), CastorEventDisplay::processEvent(), HcalBaseMonitor::setupDepthHists1D(), and HcalBaseMonitor::setupDepthHists2D().
|
private |
|
private |
Definition at line 83 of file CPUTimer.h.
Referenced by add(), realTime(), reset(), and stop().
|
private |
Definition at line 80 of file CPUTimer.h.
Referenced by calculateDeltaTime(), CPUTimer(), and start().
|
private |
Definition at line 79 of file CPUTimer.h.
Referenced by calculateDeltaTime(), CPUTimer(), and start().
|
private |
Referenced by cpuTime(), realTime(), start(), and stop().