CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

FastTimerService::AtomicResources::AtomicResources ( )

Definition at line 128 of file FastTimerService.cc.

129  : time_thread(0ul), time_real(0ul), allocated(0ul), deallocated(0ul) {}
std::atomic< uint64_t > deallocated
std::atomic< uint64_t > allocated
std::atomic< boost::chrono::nanoseconds::rep > time_thread
std::atomic< boost::chrono::nanoseconds::rep > time_real
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()) {}
std::atomic< uint64_t > deallocated
std::atomic< uint64_t > allocated
std::atomic< boost::chrono::nanoseconds::rep > time_thread
std::atomic< boost::chrono::nanoseconds::rep > time_real

Member Function Documentation

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

Definition at line 168 of file FastTimerService.cc.

References mps_fire::result.

168  {
169  AtomicResources result(*this);
170  result += other;
171  return result;
172 }
tuple result
Definition: mps_fire.py:311
FastTimerService::Resources FastTimerService::AtomicResources::operator+ ( Resources const &  other) const

Definition at line 174 of file FastTimerService.cc.

174  {
175  return other + *this;
176 }
FastTimerService::AtomicResources & FastTimerService::AtomicResources::operator+= ( AtomicResources const &  other)

Definition at line 152 of file FastTimerService.cc.

References allocated, deallocated, time_real, and time_thread.

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 }
std::atomic< uint64_t > deallocated
std::atomic< uint64_t > allocated
std::atomic< boost::chrono::nanoseconds::rep > time_thread
std::atomic< boost::chrono::nanoseconds::rep > time_real
FastTimerService::AtomicResources & FastTimerService::AtomicResources::operator+= ( Resources const &  other)

Definition at line 160 of file FastTimerService.cc.

References FastTimerService::Resources::allocated, FastTimerService::Resources::deallocated, FastTimerService::Resources::time_real, and FastTimerService::Resources::time_thread.

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 }
std::atomic< uint64_t > deallocated
std::atomic< uint64_t > allocated
std::atomic< boost::chrono::nanoseconds::rep > time_thread
std::atomic< boost::chrono::nanoseconds::rep > time_real
FastTimerService::AtomicResources & FastTimerService::AtomicResources::operator= ( AtomicResources const &  other)

Definition at line 144 of file FastTimerService.cc.

References allocated, deallocated, time_real, and time_thread.

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 }
std::atomic< uint64_t > deallocated
std::atomic< uint64_t > allocated
std::atomic< boost::chrono::nanoseconds::rep > time_thread
std::atomic< boost::chrono::nanoseconds::rep > time_real
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 }
std::atomic< uint64_t > deallocated
std::atomic< uint64_t > allocated
std::atomic< boost::chrono::nanoseconds::rep > time_thread
std::atomic< boost::chrono::nanoseconds::rep > time_real

Member Data Documentation

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