CMS 3D CMS Logo

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

Public Member Functions

 AtomicResources ()
 
 AtomicResources (AtomicResources const &other)
 
AtomicResources operator+ (AtomicResources const &other) const
 
Resources operator+ (Resources const &other) const
 
AtomicResourcesoperator+= (AtomicResources const &other)
 
AtomicResourcesoperator+= (Resources const &other)
 
AtomicResourcesoperator= (AtomicResources const &other)
 
void reset ()
 

Public Attributes

std::atomic< uint64_t > allocated
 
std::atomic< uint64_t > deallocated
 
std::atomic< boost::chrono::nanoseconds::rep > time_real
 
std::atomic< boost::chrono::nanoseconds::rep > time_thread
 

Detailed Description

Definition at line 236 of file FastTimerService.h.

Constructor & Destructor Documentation

◆ AtomicResources() [1/2]

FastTimerService::AtomicResources::AtomicResources ( )

Definition at line 125 of file FastTimerService.cc.

126  : time_thread(0ul), time_real(0ul), allocated(0ul), deallocated(0ul) {}

◆ AtomicResources() [2/2]

FastTimerService::AtomicResources::AtomicResources ( AtomicResources const &  other)

Definition at line 128 of file FastTimerService.cc.

129  : time_thread(other.time_thread.load()),
130  time_real(other.time_real.load()),
131  allocated(other.allocated.load()),
132  deallocated(other.deallocated.load()) {}

Member Function Documentation

◆ operator+() [1/2]

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

Definition at line 165 of file FastTimerService.cc.

165  {
166  AtomicResources result(*this);
167  result += other;
168  return result;
169 }

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

◆ operator+() [2/2]

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

Definition at line 171 of file FastTimerService.cc.

171  {
172  return other + *this;
173 }

References trackingPlots::other.

◆ operator+=() [1/2]

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

Definition at line 149 of file FastTimerService.cc.

149  {
150  time_thread += other.time_thread.load();
151  time_real += other.time_real.load();
152  allocated += other.allocated.load();
153  deallocated += other.deallocated.load();
154  return *this;
155 }

References trackingPlots::other.

◆ operator+=() [2/2]

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

Definition at line 157 of file FastTimerService.cc.

157  {
158  time_thread += other.time_thread.count();
159  time_real += other.time_real.count();
160  allocated += other.allocated;
161  deallocated += other.deallocated;
162  return *this;
163 }

References trackingPlots::other.

◆ operator=()

FastTimerService::AtomicResources & FastTimerService::AtomicResources::operator= ( AtomicResources const &  other)

Definition at line 141 of file FastTimerService.cc.

141  {
142  time_thread = other.time_thread.load();
143  time_real = other.time_real.load();
144  allocated = other.allocated.load();
145  deallocated = other.deallocated.load();
146  return *this;
147 }

References trackingPlots::other.

◆ reset()

void FastTimerService::AtomicResources::reset ( void  )

Definition at line 134 of file FastTimerService.cc.

134  {
135  time_thread = 0ul;
136  time_real = 0ul;
137  allocated = 0ul;
138  deallocated = 0ul;
139 }

Member Data Documentation

◆ allocated

std::atomic<uint64_t> FastTimerService::AtomicResources::allocated

Definition at line 251 of file FastTimerService.h.

◆ deallocated

std::atomic<uint64_t> FastTimerService::AtomicResources::deallocated

Definition at line 252 of file FastTimerService.h.

◆ time_real

std::atomic<boost::chrono::nanoseconds::rep> FastTimerService::AtomicResources::time_real

Definition at line 250 of file FastTimerService.h.

◆ time_thread

std::atomic<boost::chrono::nanoseconds::rep> FastTimerService::AtomicResources::time_thread

Definition at line 249 of file FastTimerService.h.

FastTimerService::AtomicResources::time_thread
std::atomic< boost::chrono::nanoseconds::rep > time_thread
Definition: FastTimerService.h:249
FastTimerService::AtomicResources::deallocated
std::atomic< uint64_t > deallocated
Definition: FastTimerService.h:252
FastTimerService::AtomicResources::time_real
std::atomic< boost::chrono::nanoseconds::rep > time_real
Definition: FastTimerService.h:250
FastTimerService::AtomicResources::allocated
std::atomic< uint64_t > allocated
Definition: FastTimerService.h:251
trackingPlots.other
other
Definition: trackingPlots.py:1465
FastTimerService::AtomicResources::AtomicResources
AtomicResources()
Definition: FastTimerService.cc:125
mps_fire.result
result
Definition: mps_fire.py:303