19 #ifndef EQ_STATISTICSAMPLER_H 20 #define EQ_STATISTICSAMPLER_H 22 #include <eq/fabric/statistic.h> 34 template <
typename Owner>
47 const uint32_t frameNumber = LB_UNDEFINED_UINT32)
51 LBASSERT(owner->getID() != 0);
52 LBASSERT(owner->getSerial() != CO_INSTANCE_INVALID);
59 if (
statistic.frameNumber == LB_UNDEFINED_UINT32)
60 statistic.frameNumber = owner->getCurrentFrame();
76 #endif // EQ_STATISTICSAMPLER_H Utility to sample an statistics event.
Statistic statistic
The statistics event.
virtual ~StatisticSampler()
Destruct and finish statistics sampling.
The Equalizer client library.
StatisticSampler(const Statistic::Type type, Owner *owner, const uint32_t frameNumber=LB_UNDEFINED_UINT32)
Construct a new statistics sampler.