Public Member Functions | |
virtual void | addToCPUTime (StreamID id, double iTime) override |
virtual double | getTotalCPU () const override |
Timing (ParameterSet const &, ActivityRegistry &) | |
~Timing () | |
Public Member Functions inherited from edm::TimingServiceBase | |
TimingServiceBase () | |
virtual | ~TimingServiceBase () |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | postBeginJob () |
double | postCommon () const |
void | postEndJob () |
void | postEvent (StreamContext const &) |
void | postModule (ModuleDescription const &md) |
void | postModuleEvent (StreamContext const &, ModuleCallingContext const &) |
void | postModuleGlobal (GlobalContext const &, ModuleCallingContext const &) |
void | postModuleStream (StreamContext const &, ModuleCallingContext const &) |
void | postOpenFile (std::string const &, bool) |
void | postSourceEvent (StreamID) |
void | postSourceLumi () |
void | postSourceRun () |
void | preEvent (StreamContext const &) |
void | preModule (ModuleDescription const &md) |
void | preModuleGlobal (GlobalContext const &, ModuleCallingContext const &) |
void | preModuleStream (StreamContext const &, ModuleCallingContext const &) |
void | preOpenFile (std::string const &, bool) |
void | preSourceEvent (StreamID) |
void | preSourceLumi () |
void | preSourceRun () |
Private Attributes | |
std::vector< double > | curr_events_time_ |
double | curr_job_cpu_ |
double | curr_job_time_ |
std::atomic< double > | last_run_cpu_ |
std::atomic< double > | last_run_time_ |
std::vector< double > | max_events_time_ |
std::vector< double > | min_events_time_ |
unsigned int | nStreams_ |
unsigned int | nThreads_ |
bool | report_summary_ |
std::vector< double > | sum_events_time_ |
bool | summary_only_ |
double | threshold_ |
std::atomic< unsigned long > | total_event_count_ |
edm::service::Timing::Timing | ( | ParameterSet const & | iPS, |
ActivityRegistry & | iRegistry | ||
) |
Definition at line 167 of file Timing.cc.
References edm::signalslot::Signal< T >::connect(), curr_events_time_, edm::service::getCPU(), edm::service::getTime(), last_run_cpu_, last_run_time_, hpstanc_transforms::max, max_events_time_, edm::service::SystemBounds::maxNumberOfStreams(), edm::service::SystemBounds::maxNumberOfThreads(), min_events_time_, nStreams_, nThreads_, postBeginJob(), postEndJob(), postEvent(), edm::ActivityRegistry::postGlobalEndRunSignal_, postModule(), postModuleEvent(), postModuleGlobal(), postModuleStream(), postOpenFile(), postSourceEvent(), postSourceLumi(), postSourceRun(), edm::ActivityRegistry::preallocateSignal_, preEvent(), preModule(), preModuleGlobal(), preModuleStream(), preOpenFile(), preSourceEvent(), preSourceLumi(), preSourceRun(), sum_events_time_, summary_only_, threshold_, edm::ActivityRegistry::watchPostBeginJob(), edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostEvent(), edm::ActivityRegistry::watchPostEventReadFromSource(), edm::ActivityRegistry::watchPostModuleBeginJob(), edm::ActivityRegistry::watchPostModuleConstruction(), edm::ActivityRegistry::watchPostModuleEndJob(), edm::ActivityRegistry::watchPostModuleEvent(), edm::ActivityRegistry::watchPostModuleGlobalBeginLumi(), edm::ActivityRegistry::watchPostModuleGlobalBeginRun(), edm::ActivityRegistry::watchPostModuleGlobalEndLumi(), edm::ActivityRegistry::watchPostModuleGlobalEndRun(), edm::ActivityRegistry::watchPostModuleStreamBeginLumi(), edm::ActivityRegistry::watchPostModuleStreamBeginRun(), edm::ActivityRegistry::watchPostModuleStreamEndLumi(), edm::ActivityRegistry::watchPostModuleStreamEndRun(), edm::ActivityRegistry::watchPostOpenFile(), edm::ActivityRegistry::watchPostSourceConstruction(), edm::ActivityRegistry::watchPostSourceEvent(), edm::ActivityRegistry::watchPostSourceLumi(), edm::ActivityRegistry::watchPostSourceRun(), edm::ActivityRegistry::watchPreEvent(), edm::ActivityRegistry::watchPreEventReadFromSource(), edm::ActivityRegistry::watchPreModuleBeginJob(), edm::ActivityRegistry::watchPreModuleConstruction(), edm::ActivityRegistry::watchPreModuleEndJob(), edm::ActivityRegistry::watchPreModuleEvent(), edm::ActivityRegistry::watchPreModuleGlobalBeginLumi(), edm::ActivityRegistry::watchPreModuleGlobalBeginRun(), edm::ActivityRegistry::watchPreModuleGlobalEndLumi(), edm::ActivityRegistry::watchPreModuleGlobalEndRun(), edm::ActivityRegistry::watchPreModuleStreamBeginLumi(), edm::ActivityRegistry::watchPreModuleStreamBeginRun(), edm::ActivityRegistry::watchPreModuleStreamEndLumi(), edm::ActivityRegistry::watchPreModuleStreamEndRun(), edm::ActivityRegistry::watchPreOpenFile(), edm::ActivityRegistry::watchPreSourceConstruction(), edm::ActivityRegistry::watchPreSourceEvent(), edm::ActivityRegistry::watchPreSourceLumi(), and edm::ActivityRegistry::watchPreSourceRun().
|
overridevirtual |
Extra CPU time used by a job but not seen by cmsRun The value should be in seconds. This function is safe to call from multiple threads
Implements edm::TimingServiceBase.
Definition at line 264 of file Timing.cc.
References curr_job_cpu_.
|
static |
Definition at line 273 of file Timing.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::addUntracked(), edm::ConfigurationDescriptions::setComment(), and edm::ParameterDescriptionNode::setComment().
|
overridevirtual |
CPU time used by this process and all its children. The value returned should be in seconds.
Implements edm::TimingServiceBase.
Definition at line 269 of file Timing.cc.
References edm::service::getCPU().
|
private |
Definition at line 286 of file Timing.cc.
References curr_job_cpu_, curr_job_time_, edm::service::getCPU(), edm::service::getTime(), and summary_only_.
Referenced by Timing().
|
private |
Definition at line 465 of file Timing.cc.
References edm::service::popStack(), lumiQTWidget::t, threshold_, and trackingPlots::Timing.
Referenced by postModule(), postModuleEvent(), postModuleGlobal(), postModuleStream(), postOpenFile(), postSourceEvent(), postSourceLumi(), and postSourceRun().
|
private |
Definition at line 301 of file Timing.cc.
References curr_job_cpu_, curr_job_time_, edm::service::d2str(), edm::service::getCPU(), edm::service::getTime(), last_run_cpu_, last_run_time_, max_events_time_, min_events_time_, nStreams_, nThreads_, report_summary_, sum_events_time_, lumiQTWidget::t, total_event_count_, and edm::service::ui2str().
Referenced by Timing().
|
private |
Definition at line 369 of file Timing.cc.
References curr_events_time_, edm::StreamContext::eventID(), edm::service::getTime(), diffTreeTool::index, max_events_time_, min_events_time_, edm::StreamContext::streamID(), sum_events_time_, summary_only_, total_event_count_, and edm::StreamID::value().
Referenced by Timing().
|
private |
|
private |
Definition at line 388 of file Timing.cc.
References edm::StreamContext::eventID(), edm::ModuleCallingContext::moduleDescription(), postCommon(), summary_only_, and lumiQTWidget::t.
Referenced by Timing().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 364 of file Timing.cc.
References curr_events_time_, edm::service::getTime(), diffTreeTool::index, edm::StreamContext::streamID(), and edm::StreamID::value().
Referenced by Timing().
|
private |
Definition at line 435 of file Timing.cc.
References edm::service::pushStack().
Referenced by Timing().
|
private |
Definition at line 445 of file Timing.cc.
References edm::service::pushStack().
Referenced by Timing().
|
private |
Definition at line 455 of file Timing.cc.
References edm::service::pushStack().
Referenced by Timing().
|
private |
Definition at line 426 of file Timing.cc.
References edm::service::pushStack().
Referenced by Timing().
|
private |
Definition at line 402 of file Timing.cc.
References edm::service::pushStack().
Referenced by Timing().
|
private |
Definition at line 410 of file Timing.cc.
References edm::service::pushStack().
Referenced by Timing().
|
private |
Definition at line 418 of file Timing.cc.
References edm::service::pushStack().
Referenced by Timing().
|
private |
Definition at line 84 of file Timing.cc.
Referenced by postEvent(), preEvent(), and Timing().
|
private |
Definition at line 80 of file Timing.cc.
Referenced by addToCPUTime(), postBeginJob(), and postEndJob().
|
private |
Definition at line 79 of file Timing.cc.
Referenced by postBeginJob(), and postEndJob().
|
private |
Definition at line 83 of file Timing.cc.
Referenced by postEndJob(), and Timing().
|
private |
Definition at line 82 of file Timing.cc.
Referenced by postEndJob(), and Timing().
|
private |
Definition at line 91 of file Timing.cc.
Referenced by postEndJob(), postEvent(), and Timing().
|
private |
Definition at line 92 of file Timing.cc.
Referenced by postEndJob(), postEvent(), and Timing().
|
private |
Definition at line 95 of file Timing.cc.
Referenced by postEndJob(), and Timing().
|
private |
Definition at line 96 of file Timing.cc.
Referenced by postEndJob(), and Timing().
|
private |
Definition at line 86 of file Timing.cc.
Referenced by postEndJob().
|
private |
Definition at line 93 of file Timing.cc.
Referenced by postEndJob(), postEvent(), and Timing().
|
private |
Definition at line 85 of file Timing.cc.
Referenced by postBeginJob(), postEvent(), postModuleEvent(), and Timing().
|
private |
Definition at line 87 of file Timing.cc.
Referenced by postCommon(), and Timing().
|
private |
Definition at line 94 of file Timing.cc.
Referenced by postEndJob(), and postEvent().