#include <CPUTimer.h>
Classes | |
struct | Times |
Public Member Functions | |
void | add (const Times &t) |
double | cpuTime () const |
CPUTimer () | |
CPUTimer (CPUTimer &&)=default | |
double | realTime () const |
void | reset () |
void | start () |
Times | stop () |
~CPUTimer () | |
Private Types | |
enum | State { kRunning, kStopped } |
Private Member Functions | |
Times | calculateDeltaTime () const |
CPUTimer (const CPUTimer &)=delete | |
const CPUTimer & | operator= (const CPUTimer &)=delete |
Private Attributes | |
double | accumulatedCPUTime_ |
double | accumulatedRealTime_ |
struct timeval | startCPUTime_ |
struct timeval | startRealTime_ |
enum edm::CPUTimer::State | state_ |
Definition at line 37 of file CPUTimer.h.
|
private |
Enumerator | |
---|---|
kRunning | |
kStopped |
Definition at line 70 of file CPUTimer.h.
CPUTimer::CPUTimer | ( | ) |
Definition at line 33 of file CPUTimer.cc.
References startCPUTime_, and startRealTime_.
CPUTimer::~CPUTimer | ( | ) |
Definition at line 52 of file CPUTimer.cc.
|
default |
|
privatedelete |
void CPUTimer::add | ( | const Times & | t | ) |
Definition at line 104 of file CPUTimer.cc.
References accumulatedCPUTime_, accumulatedRealTime_, edm::CPUTimer::Times::cpu_, and edm::CPUTimer::Times::real_.
Referenced by counter.Counter::register().
|
private |
Definition at line 109 of file CPUTimer.cc.
References edm::CPUTimer::Times::cpu_, Exception, edm::CPUTimer::Times::real_, startCPUTime_, and startRealTime_.
Referenced by cpuTime(), realTime(), and stop().
double CPUTimer::cpuTime | ( | ) | const |
Definition at line 146 of file CPUTimer.cc.
References accumulatedCPUTime_, calculateDeltaTime(), edm::CPUTimer::Times::cpu_, kStopped, and state_.
Referenced by edm::SystemTimeKeeper::fillTriggerTimingReport().
double CPUTimer::realTime | ( | ) | const |
Definition at line 139 of file CPUTimer.cc.
References accumulatedRealTime_, calculateDeltaTime(), kStopped, edm::CPUTimer::Times::real_, and state_.
Referenced by edm::service::ResourceEnforcer::check(), and edm::SystemTimeKeeper::fillTriggerTimingReport().
void CPUTimer::reset | ( | void | ) |
Definition at line 99 of file CPUTimer.cc.
References accumulatedCPUTime_, and accumulatedRealTime_.
void CPUTimer::start | ( | ) |
Definition at line 68 of file CPUTimer.cc.
References Exception, kRunning, kStopped, startCPUTime_, startRealTime_, and state_.
Referenced by progressbar.ProgressBar::__next__(), XrdAdaptor::RequestManager::handle(), edm::service::ResourceEnforcer::ResourceEnforcer(), and edm::SystemTimeKeeper::startProcessingLoop().
CPUTimer::Times CPUTimer::stop | ( | ) |
Definition at line 87 of file CPUTimer.cc.
References accumulatedCPUTime_, accumulatedRealTime_, calculateDeltaTime(), edm::CPUTimer::Times::cpu_, kRunning, kStopped, edm::CPUTimer::Times::real_, state_, and protons_cff::t.
Referenced by XrdAdaptor::RequestManager::handle(), and edm::SystemTimeKeeper::stopProcessingLoop().
|
private |
|
private |
Definition at line 79 of file CPUTimer.h.
Referenced by add(), realTime(), reset(), and stop().
|
private |
Definition at line 76 of file CPUTimer.h.
Referenced by calculateDeltaTime(), CPUTimer(), and start().
|
private |
Definition at line 75 of file CPUTimer.h.
Referenced by calculateDeltaTime(), CPUTimer(), and start().
|
private |
Referenced by cpuTime(), realTime(), start(), and stop().