Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
Realm::ProfilingGauges::EventCounter< T > Class Template Reference

#include <sampling.h>

Inheritance diagram for Realm::ProfilingGauges::EventCounter< T >:
Collaboration diagram for Realm::ProfilingGauges::EventCounter< T >:

Classes

struct  Sample
 

Public Types

typedef T DATA_TYPE
 
- Public Types inherited from Realm::ProfilingGauges::Gauge
enum  GaugeType { GTYPE_UNKNOWN = 0 , GTYPE_ABSOLUTE = 1 , GTYPE_ABSOLUTERANGE = 2 , GTYPE_EVENTCOUNT = 3 }
 

Public Member Functions

 EventCounter (const std::string &_name, SamplingProfiler *_profiler=0)
 
 operator T (void) const
 
EventCounter< T > & operator+= (T to_add)
 
- Public Member Functions inherited from Realm::ProfilingGauges::Gauge
 Gauge (const std::string &_name)
 
 ~Gauge (void)
 

Static Public Attributes

static const int GAUGE_TYPE = GTYPE_EVENTCOUNT
 

Protected Attributes

atomic< T > events
 
- Protected Attributes inherited from Realm::ProfilingGauges::Gauge
GaugeSamplersampler
 

Friends

class Realm::GaugeSampler
 

Additional Inherited Members

- Static Public Member Functions inherited from Realm::ProfilingGauges::Gauge
static size_t instantiate_templates (void)
 
- Public Attributes inherited from Realm::ProfilingGauges::Gauge
const std::string name
 
- Protected Member Functions inherited from Realm::ProfilingGauges::Gauge
void remove_gauge (void)
 
- Static Protected Member Functions inherited from Realm::ProfilingGauges::Gauge
template<typename T >
static void add_gauge (T *gauge, SamplingProfiler *_profiler)
 

Member Typedef Documentation

◆ DATA_TYPE

template<typename T = int>
typedef T Realm::ProfilingGauges::EventCounter< T >::DATA_TYPE

Constructor & Destructor Documentation

◆ EventCounter()

template<typename T = int>
Realm::ProfilingGauges::EventCounter< T >::EventCounter ( const std::string &  _name,
SamplingProfiler _profiler = 0 
)

Member Function Documentation

◆ operator T()

template<typename T = int>
Realm::ProfilingGauges::EventCounter< T >::operator T ( void  ) const

◆ operator+=()

template<typename T = int>
EventCounter< T > & Realm::ProfilingGauges::EventCounter< T >::operator+= ( to_add)

Friends And Related Symbol Documentation

◆ Realm::GaugeSampler

template<typename T = int>
friend class Realm::GaugeSampler
friend

Member Data Documentation

◆ events

template<typename T = int>
atomic<T> Realm::ProfilingGauges::EventCounter< T >::events
protected

◆ GAUGE_TYPE

template<typename T = int>
const int Realm::ProfilingGauges::EventCounter< T >::GAUGE_TYPE = GTYPE_EVENTCOUNT
static

The documentation for this class was generated from the following file: