#include <ChildrenCPUTimer.h>
Public Member Functions | |
void | add (double t) |
ChildrenCPUTimer () | |
ChildrenCPUTimer (ChildrenCPUTimer &&)=default | |
ChildrenCPUTimer (const ChildrenCPUTimer &)=delete | |
double | cpuTime () const |
ChildrenCPUTimer & | operator= (const ChildrenCPUTimer &)=delete |
void | reset () |
void | start () |
double | stop () |
~ChildrenCPUTimer () | |
Private Types | |
enum | State { kRunning, kStopped } |
Private Member Functions | |
double | calculateDeltaTime () const |
Private Attributes | |
double | accumulatedCPUTime_ |
struct timeval | startCPUTime_ |
enum edm::ChildrenCPUTimer::State | state_ |
Definition at line 28 of file ChildrenCPUTimer.h.
|
private |
Enumerator | |
---|---|
kRunning | |
kStopped |
Definition at line 52 of file ChildrenCPUTimer.h.
ChildrenCPUTimer::ChildrenCPUTimer | ( | ) |
Definition at line 33 of file ChildrenCPUTimer.cc.
References startCPUTime_.
ChildrenCPUTimer::~ChildrenCPUTimer | ( | ) |
Definition at line 38 of file ChildrenCPUTimer.cc.
|
default |
|
delete |
void ChildrenCPUTimer::add | ( | double | t | ) |
Definition at line 68 of file ChildrenCPUTimer.cc.
References accumulatedCPUTime_, and submitPVValidationJobs::t.
Referenced by counter.Counter::register().
|
private |
Definition at line 70 of file ChildrenCPUTimer.cc.
References Exception, and startCPUTime_.
Referenced by cpuTime(), and stop().
double ChildrenCPUTimer::cpuTime | ( | ) | const |
Definition at line 86 of file ChildrenCPUTimer.cc.
References accumulatedCPUTime_, calculateDeltaTime(), kStopped, and state_.
Referenced by edm::SystemTimeKeeper::fillTriggerTimingReport().
|
delete |
void ChildrenCPUTimer::reset | ( | void | ) |
Definition at line 66 of file ChildrenCPUTimer.cc.
References accumulatedCPUTime_.
void ChildrenCPUTimer::start | ( | ) |
Definition at line 43 of file ChildrenCPUTimer.cc.
References Exception, kRunning, kStopped, startCPUTime_, and state_.
Referenced by progressbar.ProgressBar::__next__(), and edm::SystemTimeKeeper::startProcessingLoop().
double ChildrenCPUTimer::stop | ( | ) |
Definition at line 55 of file ChildrenCPUTimer.cc.
References accumulatedCPUTime_, calculateDeltaTime(), kRunning, kStopped, state_, and submitPVValidationJobs::t.
Referenced by edm::SystemTimeKeeper::stopProcessingLoop().
|
private |
|
private |
Definition at line 53 of file ChildrenCPUTimer.h.
Referenced by calculateDeltaTime(), ChildrenCPUTimer(), and start().
|
private |