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

#include <sampling_impl.h>

Inheritance diagram for Realm::GaugeSamplerImpl< T >:
[legend]
Collaboration diagram for Realm::GaugeSamplerImpl< T >:
[legend]

Public Member Functions

 GaugeSamplerImpl (int _sampler_id, SamplingProfilerImpl *_profiler, T *_gauge, SampleFile::PacketNewGauge *info)
virtual bool sample_gauge (int sample_index)
virtual GaugeSampleBuffer * buffer_swap (size_t new_buffer_size, bool nonempty_only=false)
Public Member Functions inherited from Realm::GaugeSampler
 GaugeSampler (int _sampler_id, SamplingProfilerImpl *_profiler)
virtual ~GaugeSampler (void)

Protected Attributes

T * gauge
size_t buffer_size
GaugeSampleBufferImpl< T > * buffer
Protected Attributes inherited from Realm::GaugeSampler
int sampler_id
SamplingProfilerImpl * profiler
Mutex mutex
bool gauge_exists
GaugeSampler * next

Additional Inherited Members

Protected Member Functions inherited from Realm::GaugeSampler
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)

Constructor & Destructor Documentation

◆ GaugeSamplerImpl()

template<typename T>
Realm::GaugeSamplerImpl< T >::GaugeSamplerImpl ( int _sampler_id,
SamplingProfilerImpl * _profiler,
T * _gauge,
SampleFile::PacketNewGauge * info )

Member Function Documentation

◆ buffer_swap()

template<typename T>
virtual GaugeSampleBuffer * Realm::GaugeSamplerImpl< T >::buffer_swap ( size_t new_buffer_size,
bool nonempty_only = false )
virtual

Implements Realm::GaugeSampler.

◆ sample_gauge()

template<typename T>
virtual bool Realm::GaugeSamplerImpl< T >::sample_gauge ( int sample_index)
virtual

Implements Realm::GaugeSampler.

Member Data Documentation

◆ buffer

template<typename T>
GaugeSampleBufferImpl<T>* Realm::GaugeSamplerImpl< T >::buffer
protected

◆ buffer_size

template<typename T>
size_t Realm::GaugeSamplerImpl< T >::buffer_size
protected

◆ gauge

template<typename T>
T* Realm::GaugeSamplerImpl< T >::gauge
protected

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