CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
FastTimerService::Resources Struct Reference

Public Member Functions

Resources operator+ (Resources const &other) const
 
Resourcesoperator+= (Resources const &other)
 
void reset ()
 
 Resources ()
 

Public Attributes

uint64_t allocated
 
uint64_t deallocated
 
boost::chrono::nanoseconds time_real
 
boost::chrono::nanoseconds time_thread
 

Detailed Description

Definition at line 225 of file FastTimerService.h.

Constructor & Destructor Documentation

FastTimerService::Resources::Resources ( )

Definition at line 71 of file FastTimerService.cc.

71  :
72  time_thread(boost::chrono::nanoseconds::zero()),
73  time_real(boost::chrono::nanoseconds::zero()),
74  allocated(0ul),
75  deallocated(0ul)
76 { }
boost::chrono::nanoseconds time_real
boost::chrono::nanoseconds time_thread

Member Function Documentation

FastTimerService::Resources FastTimerService::Resources::operator+ ( Resources const &  other) const

Definition at line 96 of file FastTimerService.cc.

References trackingPlots::other, and mps_fire::result.

96  {
97  Resources result(*this);
98  result += other;
99  return result;
100 }
FastTimerService::Resources & FastTimerService::Resources::operator+= ( Resources const &  other)

Definition at line 87 of file FastTimerService.cc.

References allocated, deallocated, time_real, and time_thread.

87  {
88  time_thread += other.time_thread;
89  time_real += other.time_real;
90  allocated += other.allocated;
91  deallocated += other.deallocated;
92  return *this;
93 }
boost::chrono::nanoseconds time_real
boost::chrono::nanoseconds time_thread
void FastTimerService::Resources::reset ( void  )

Definition at line 79 of file FastTimerService.cc.

References allocated, deallocated, time_real, and time_thread.

Referenced by FastTimerService::ResourcesPerProcess::reset(), and FastTimerService::ResourcesPerJob::reset().

79  {
80  time_thread = boost::chrono::nanoseconds::zero();
81  time_real = boost::chrono::nanoseconds::zero();
82  allocated = 0ul;
83  deallocated = 0ul;
84 }
boost::chrono::nanoseconds time_real
boost::chrono::nanoseconds time_thread

Member Data Documentation

uint64_t FastTimerService::Resources::allocated
uint64_t FastTimerService::Resources::deallocated
boost::chrono::nanoseconds FastTimerService::Resources::time_real
boost::chrono::nanoseconds FastTimerService::Resources::time_thread