Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
Realm::GaugeSampler Class Referenceabstract

#include <sampling_impl.h>

Inheritance diagram for Realm::GaugeSampler:
Collaboration diagram for Realm::GaugeSampler:

Public Member Functions

 GaugeSampler (int _sampler_id, SamplingProfilerImpl *_profiler)
 
virtual ~GaugeSampler (void)
 
virtual bool sample_gauge (int sample_index)=0
 
virtual GaugeSampleBufferbuffer_swap (size_t new_buffer_size, bool nonempty_only=false)=0
 

Protected Member Functions

template<typename T >
void perform_sample (ProfilingGauges::AbsoluteGauge< T > &gauge, typename ProfilingGauges::AbsoluteGauge< T >::Sample &sample)
 
template<typename T >
void perform_sample (ProfilingGauges::AbsoluteRangeGauge< T > &gauge, typename ProfilingGauges::AbsoluteRangeGauge< T >::Sample &sample)
 
template<typename T >
void perform_sample (ProfilingGauges::EventCounter< T > &gauge, typename ProfilingGauges::EventCounter< T >::Sample &sample)
 

Protected Attributes

int sampler_id
 
SamplingProfilerImplprofiler
 
Mutex mutex
 
bool gauge_exists
 
GaugeSamplernext
 

Friends

class ProfilingGauges::Gauge
 
class SamplingProfilerImpl
 

Constructor & Destructor Documentation

◆ GaugeSampler()

Realm::GaugeSampler::GaugeSampler ( int  _sampler_id,
SamplingProfilerImpl _profiler 
)

◆ ~GaugeSampler()

virtual Realm::GaugeSampler::~GaugeSampler ( void  )
virtual

Member Function Documentation

◆ buffer_swap()

virtual GaugeSampleBuffer * Realm::GaugeSampler::buffer_swap ( size_t  new_buffer_size,
bool  nonempty_only = false 
)
pure virtual

◆ perform_sample() [1/3]

template<typename T >
void Realm::GaugeSampler::perform_sample ( ProfilingGauges::AbsoluteGauge< T > &  gauge,
typename ProfilingGauges::AbsoluteGauge< T >::Sample &  sample 
)
protected

◆ perform_sample() [2/3]

template<typename T >
void Realm::GaugeSampler::perform_sample ( ProfilingGauges::AbsoluteRangeGauge< T > &  gauge,
typename ProfilingGauges::AbsoluteRangeGauge< T >::Sample &  sample 
)
protected

◆ perform_sample() [3/3]

template<typename T >
void Realm::GaugeSampler::perform_sample ( ProfilingGauges::EventCounter< T > &  gauge,
typename ProfilingGauges::EventCounter< T >::Sample &  sample 
)
protected

◆ sample_gauge()

virtual bool Realm::GaugeSampler::sample_gauge ( int  sample_index)
pure virtual

Friends And Related Symbol Documentation

◆ ProfilingGauges::Gauge

friend class ProfilingGauges::Gauge
friend

◆ SamplingProfilerImpl

friend class SamplingProfilerImpl
friend

Member Data Documentation

◆ gauge_exists

bool Realm::GaugeSampler::gauge_exists
protected

◆ mutex

Mutex Realm::GaugeSampler::mutex
protected

◆ next

GaugeSampler* Realm::GaugeSampler::next
protected

◆ profiler

SamplingProfilerImpl* Realm::GaugeSampler::profiler
protected

◆ sampler_id

int Realm::GaugeSampler::sampler_id
protected

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