CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::EventTime Class Reference

#include <ModuleTiming.h>

Public Member Functions

void addModuleTime (const ModuleTime &m)
 
 EventTime ()
 
const ModuleTimemoduleTime (unsigned i)
 
std::string name (unsigned i) const
 
void reset ()
 
unsigned size () const
 
double time (unsigned i) const
 
double tot_time () const
 
 ~EventTime ()
 

Private Attributes

std::vector< ModuleTimemoduleSet
 
double tot_time_
 

Detailed Description

Definition at line 28 of file ModuleTiming.h.

Constructor & Destructor Documentation

edm::EventTime::EventTime ( )
inline

Definition at line 35 of file ModuleTiming.h.

References reset().

35 {reset();}
edm::EventTime::~EventTime ( )
inline

Definition at line 36 of file ModuleTiming.h.

36 {}

Member Function Documentation

void edm::EventTime::addModuleTime ( const ModuleTime m)
inline

Definition at line 58 of file ModuleTiming.h.

References edm::ModuleTime::time().

Referenced by Timer::newTimingMeasurement().

59  {
60  moduleSet.push_back(m);
61  tot_time_ += m.time();
62  }
double tot_time_
Definition: ModuleTiming.h:32
std::vector< ModuleTime > moduleSet
Definition: ModuleTiming.h:31
const ModuleTime& edm::EventTime::moduleTime ( unsigned  i)
inline

Definition at line 41 of file ModuleTiming.h.

42  {
43  return moduleSet.at(i);
44  }
std::vector< ModuleTime > moduleSet
Definition: ModuleTiming.h:31
std::string edm::EventTime::name ( unsigned  i) const
inline
void edm::EventTime::reset ( void  )
inline

Definition at line 65 of file ModuleTiming.h.

Referenced by Timer::produce(), and Timer::Timer().

66  {moduleSet.clear(); tot_time_ = 0;}
double tot_time_
Definition: ModuleTiming.h:32
std::vector< ModuleTime > moduleSet
Definition: ModuleTiming.h:31
unsigned edm::EventTime::size ( void  ) const
inline

Definition at line 39 of file ModuleTiming.h.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and PerformanceAnalyzer::analyze().

39 {return moduleSet.size();}
std::vector< ModuleTime > moduleSet
Definition: ModuleTiming.h:31
double edm::EventTime::time ( unsigned  i) const
inline

Definition at line 53 of file ModuleTiming.h.

Referenced by PerformanceAnalyzer::analyze().

54  {
55  return moduleSet.at(i).time();
56  }
std::vector< ModuleTime > moduleSet
Definition: ModuleTiming.h:31
double edm::EventTime::tot_time ( ) const
inline

Definition at line 46 of file ModuleTiming.h.

46 {return tot_time_;}
double tot_time_
Definition: ModuleTiming.h:32

Member Data Documentation

std::vector<ModuleTime> edm::EventTime::moduleSet
private

Definition at line 31 of file ModuleTiming.h.

double edm::EventTime::tot_time_
private

Definition at line 32 of file ModuleTiming.h.