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 127 of file FastTimerService.cc.

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

◆ AtomicResources() [2/2]

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

Definition at line 130 of file FastTimerService.cc.

131  : time_thread(other.time_thread.load()),
132  time_real(other.time_real.load()),
133  allocated(other.allocated.load()),
134  deallocated(other.deallocated.load()) {}

Member Function Documentation

◆ operator+() [1/2]

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

Definition at line 167 of file FastTimerService.cc.

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

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

◆ operator+() [2/2]

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

Definition at line 173 of file FastTimerService.cc.

173  {
174  return other + *this;
175 }

References trackingPlots::other.

◆ operator+=() [1/2]

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

Definition at line 151 of file FastTimerService.cc.

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

References trackingPlots::other.

◆ operator+=() [2/2]

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

Definition at line 159 of file FastTimerService.cc.

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

References trackingPlots::other.

◆ operator=()

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

Definition at line 143 of file FastTimerService.cc.

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

References trackingPlots::other.

◆ reset()

void FastTimerService::AtomicResources::reset ( void  )

Definition at line 136 of file FastTimerService.cc.

136  {
137  time_thread = 0ul;
138  time_real = 0ul;
139  allocated = 0ul;
140  deallocated = 0ul;
141 }

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:1467
FastTimerService::AtomicResources::AtomicResources
AtomicResources()
Definition: FastTimerService.cc:127
mps_fire.result
result
Definition: mps_fire.py:311