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 230 of file FastTimerService.h.

Constructor & Destructor Documentation

FastTimerService::Resources::Resources ( )

Definition at line 72 of file FastTimerService.cc.

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

Member Function Documentation

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

Definition at line 88 of file FastTimerService.cc.

References allocated, deallocated, time_real, and time_thread.

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

Definition at line 80 of file FastTimerService.cc.

References allocated, deallocated, time_real, and time_thread.

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

80  {
81  time_thread = boost::chrono::nanoseconds::zero();
82  time_real = boost::chrono::nanoseconds::zero();
83  allocated = 0UL;
84  deallocated = 0UL;
85 }
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