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
 
Resources operator+ (struct AtomicResources const &other) const
 
Resourcesoperator+= (Resources const &other)
 
Resourcesoperator+= (struct AtomicResources 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 217 of file FastTimerService.h.

Constructor & Destructor Documentation

◆ Resources()

FastTimerService::Resources::Resources ( )

Definition at line 79 of file FastTimerService.cc.

80  : time_thread(boost::chrono::nanoseconds::zero()),
81  time_real(boost::chrono::nanoseconds::zero()),
82  allocated(0ul),
83  deallocated(0ul) {}

Member Function Documentation

◆ operator+() [1/2]

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

Definition at line 108 of file FastTimerService.cc.

108  {
109  Resources result(*this);
110  result += other;
111  return result;
112 }

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

◆ operator+() [2/2]

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

◆ operator+=() [1/2]

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

Definition at line 92 of file FastTimerService.cc.

92  {
93  time_thread += other.time_thread;
94  time_real += other.time_real;
95  allocated += other.allocated;
96  deallocated += other.deallocated;
97  return *this;
98 }

References trackingPlots::other.

◆ operator+=() [2/2]

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

◆ reset()

void FastTimerService::Resources::reset ( void  )

Definition at line 85 of file FastTimerService.cc.

85  {
86  time_thread = boost::chrono::nanoseconds::zero();
87  time_real = boost::chrono::nanoseconds::zero();
88  allocated = 0ul;
89  deallocated = 0ul;
90 }

Member Data Documentation

◆ allocated

uint64_t FastTimerService::Resources::allocated

Definition at line 230 of file FastTimerService.h.

◆ deallocated

uint64_t FastTimerService::Resources::deallocated

Definition at line 231 of file FastTimerService.h.

◆ time_real

boost::chrono::nanoseconds FastTimerService::Resources::time_real

Definition at line 229 of file FastTimerService.h.

◆ time_thread

boost::chrono::nanoseconds FastTimerService::Resources::time_thread

Definition at line 228 of file FastTimerService.h.

FastTimerService::Resources::time_thread
boost::chrono::nanoseconds time_thread
Definition: FastTimerService.h:228
FastTimerService::Resources::time_real
boost::chrono::nanoseconds time_real
Definition: FastTimerService.h:229
FastTimerService::Resources::allocated
uint64_t allocated
Definition: FastTimerService.h:230
trackingPlots.other
other
Definition: trackingPlots.py:1465
FastTimerService::Resources::Resources
Resources()
Definition: FastTimerService.cc:79
FastTimerService::Resources::deallocated
uint64_t deallocated
Definition: FastTimerService.h:231
mps_fire.result
result
Definition: mps_fire.py:303