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

Constructor & Destructor Documentation

◆ AtomicResources() [1/2]

FastTimerService::AtomicResources::AtomicResources ( )

Definition at line 128 of file FastTimerService.cc.

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

◆ AtomicResources() [2/2]

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

Definition at line 131 of file FastTimerService.cc.

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

Member Function Documentation

◆ operator+() [1/2]

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

Definition at line 168 of file FastTimerService.cc.

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

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

◆ operator+() [2/2]

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

Definition at line 174 of file FastTimerService.cc.

174  {
175  return other + *this;
176 }

References trackingPlots::other.

◆ operator+=() [1/2]

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

Definition at line 152 of file FastTimerService.cc.

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

References trackingPlots::other.

◆ operator+=() [2/2]

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

Definition at line 160 of file FastTimerService.cc.

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

References trackingPlots::other.

◆ operator=()

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

Definition at line 144 of file FastTimerService.cc.

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

References trackingPlots::other.

◆ reset()

void FastTimerService::AtomicResources::reset ( void  )

Definition at line 137 of file FastTimerService.cc.

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

Member Data Documentation

◆ allocated

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

Definition at line 252 of file FastTimerService.h.

◆ deallocated

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

Definition at line 253 of file FastTimerService.h.

◆ time_real

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

Definition at line 251 of file FastTimerService.h.

◆ time_thread

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

Definition at line 250 of file FastTimerService.h.

FastTimerService::AtomicResources::time_thread
std::atomic< boost::chrono::nanoseconds::rep > time_thread
Definition: FastTimerService.h:250
FastTimerService::AtomicResources::deallocated
std::atomic< uint64_t > deallocated
Definition: FastTimerService.h:253
FastTimerService::AtomicResources::time_real
std::atomic< boost::chrono::nanoseconds::rep > time_real
Definition: FastTimerService.h:251
FastTimerService::AtomicResources::allocated
std::atomic< uint64_t > allocated
Definition: FastTimerService.h:252
trackingPlots.other
other
Definition: trackingPlots.py:1464
FastTimerService::AtomicResources::AtomicResources
AtomicResources()
Definition: FastTimerService.cc:128
mps_fire.result
result
Definition: mps_fire.py:311