diff options
author | Richard Linden <none@none> | 2013-03-08 17:08:00 -0800 |
---|---|---|
committer | Richard Linden <none@none> | 2013-03-08 17:08:00 -0800 |
commit | 4e3fddf271e6ff4557f594b6a8c036ab2a4e413f (patch) | |
tree | 44354258589fc5be9dd5db54a27bec8edbc9e630 /indra/newview/llviewerstats.h | |
parent | 4a5f14afc987b645c68705b0313aebbc3ba1d811 (diff) |
fixed remaining sample and add calls
Diffstat (limited to 'indra/newview/llviewerstats.h')
-rw-r--r-- | indra/newview/llviewerstats.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/indra/newview/llviewerstats.h b/indra/newview/llviewerstats.h index a82c64317e..069a726e5e 100644 --- a/indra/newview/llviewerstats.h +++ b/indra/newview/llviewerstats.h @@ -41,6 +41,8 @@ struct SimMeasurementSampler : public LLInstanceTracker<SimMeasurementSampler, E : LLInstanceTracker<SimMeasurementSampler, ESimStatID>(id) {} virtual ~SimMeasurementSampler() {} + + virtual void sample(F64 value) = 0; }; template<typename T = F64> @@ -52,9 +54,18 @@ struct SimMeasurement : public LLTrace::MeasurementStatHandle<T>, public SimMeas {} using SimMeasurementSampler::getInstance; -}; + /*virtual*/ void sample(F64 value) + { + LLTrace::sample(*this, value); + } +}; +template<typename T, typename VALUE_T> +void sample(SimMeasurement<T>& measurement, VALUE_T value) +{ + LLTrace::sample(measurement, value); +} extern LLTrace::CountStatHandle<> FPS, PACKETS_IN, PACKETS_LOST, |