diff options
| author | Richard Linden <none@none> | 2012-10-02 17:14:12 -0700 |
|---|---|---|
| committer | Richard Linden <none@none> | 2012-10-02 17:14:12 -0700 |
| commit | 7196619b4a0823a332e10b7f98464a1649e0dfd2 (patch) | |
| tree | 40f6285bbad413632fe4cd48af9eb788bab85f3d /indra/llcommon/lltracerecording.cpp | |
| parent | dbe9742703cf14db85ec3d16c540efc68dce95a6 (diff) | |
SH-3275 WIP Update viewer metrics system to be more flexible
implemented minimal merging logic
made recordings ligher weight by moving live tracking data into threadrecorder
Diffstat (limited to 'indra/llcommon/lltracerecording.cpp')
| -rw-r--r-- | indra/llcommon/lltracerecording.cpp | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/indra/llcommon/lltracerecording.cpp b/indra/llcommon/lltracerecording.cpp index a792d40f9d..95cdb44e4b 100644 --- a/indra/llcommon/lltracerecording.cpp +++ b/indra/llcommon/lltracerecording.cpp @@ -39,17 +39,13 @@ namespace LLTrace Recording::Recording() : mElapsedSeconds(0), mIsStarted(false), - mRatesStart(new AccumulatorBuffer<RateAccumulator<F32> >()), mRates(new AccumulatorBuffer<RateAccumulator<F32> >()), mMeasurements(new AccumulatorBuffer<MeasurementAccumulator<F32> >()), - mStackTimers(new AccumulatorBuffer<TimerAccumulator>()), - mStackTimersStart(new AccumulatorBuffer<TimerAccumulator>()) -{ -} + mStackTimers(new AccumulatorBuffer<TimerAccumulator>()) +{} Recording::~Recording() -{ -} +{} void Recording::start() { @@ -107,18 +103,10 @@ void Recording::mergeSamples( const Recording& other ) mStackTimers.write()->mergeSamples(*other.mStackTimers); } -void Recording::initDeltas( const Recording& other ) +void Recording::mergeDeltas(const Recording& baseline, const Recording& target) { - mRatesStart.write()->copyFrom(*other.mRates); - mStackTimersStart.write()->copyFrom(*other.mStackTimers); -} - - -void Recording::mergeDeltas( const Recording& other ) -{ - mRates.write()->mergeDeltas(*mRatesStart, *other.mRates); - mStackTimers.write()->mergeDeltas(*mStackTimersStart, *other.mStackTimers); - mMeasurements.write()->mergeSamples(*other.mMeasurements); + mRates.write()->mergeDeltas(*baseline.mRates, *target.mRates); + mStackTimers.write()->mergeDeltas(*baseline.mStackTimers, *target.mStackTimers); } |
