CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Static Private Attributes
edm::TimingServiceBase Class Referenceabstract

#include <TimingServiceBase.h>

Inheritance diagram for edm::TimingServiceBase:
edm::service::Timing

Public Member Functions

virtual void addToCPUTime (double iTime)=0
 
virtual double getTotalCPU () const =0
 
const TimingServiceBaseoperator= (const TimingServiceBase &)=delete
 
 TimingServiceBase ()
 
 TimingServiceBase (const TimingServiceBase &)=delete
 
virtual ~TimingServiceBase ()
 

Static Public Member Functions

static void jobStarted ()
 
static std::chrono::steady_clock::time_point jobStartTime ()
 

Static Private Attributes

static std::chrono::steady_clock::time_point s_jobStartTime
 

Detailed Description

Definition at line 29 of file TimingServiceBase.h.

Constructor & Destructor Documentation

◆ TimingServiceBase() [1/2]

TimingServiceBase::TimingServiceBase ( )

Definition at line 35 of file TimingServiceBase.cc.

35 {}

◆ TimingServiceBase() [2/2]

edm::TimingServiceBase::TimingServiceBase ( const TimingServiceBase )
delete

◆ ~TimingServiceBase()

TimingServiceBase::~TimingServiceBase ( )
virtual

Definition at line 37 of file TimingServiceBase.cc.

37 {}

Member Function Documentation

◆ addToCPUTime()

virtual void edm::TimingServiceBase::addToCPUTime ( double  iTime)
pure virtual

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

Implemented in edm::service::Timing.

◆ getTotalCPU()

virtual double edm::TimingServiceBase::getTotalCPU ( ) const
pure virtual

CPU time used by this process and all its children. The value returned should be in seconds.

Implemented in edm::service::Timing.

Referenced by edm::service::CondorStatusService::updateImpl().

◆ jobStarted()

void TimingServiceBase::jobStarted ( )
static

Definition at line 26 of file TimingServiceBase.cc.

References submitPVValidationJobs::now, and s_jobStartTime.

26  {
27  if (0 == s_jobStartTime.time_since_epoch().count()) {
29  }
30 }
static std::chrono::steady_clock::time_point s_jobStartTime

◆ jobStartTime()

static std::chrono::steady_clock::time_point edm::TimingServiceBase::jobStartTime ( )
inlinestatic

Definition at line 48 of file TimingServiceBase.h.

References s_jobStartTime.

Referenced by edm::service::CondorStatusService::firstUpdate(), and edm::service::Timing::postEndJob().

48 { return s_jobStartTime; }
static std::chrono::steady_clock::time_point s_jobStartTime

◆ operator=()

const TimingServiceBase& edm::TimingServiceBase::operator= ( const TimingServiceBase )
delete

Member Data Documentation

◆ s_jobStartTime

std::chrono::steady_clock::time_point TimingServiceBase::s_jobStartTime
staticprivate

Definition at line 51 of file TimingServiceBase.h.

Referenced by jobStarted(), and jobStartTime().