summaryrefslogtreecommitdiff
path: root/indra/llcommon/lltracerecording.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2013-01-27 21:35:20 -0800
committerRichard Linden <none@none>2013-01-27 21:35:20 -0800
commit2c68d5367c5c44aceb4ff23d9672c35642e030f7 (patch)
tree0d7811ecbf75f552cae0f7b5228c6bf5fd711184 /indra/llcommon/lltracerecording.cpp
parent09ee16c61d372c1eb620bc3ef3dbfeb798c0a82e (diff)
SH-3275 WIP interesting Update viewer metrics system to be more flexible
fixed memory leak fixed glitching of fast timer display
Diffstat (limited to 'indra/llcommon/lltracerecording.cpp')
-rw-r--r--indra/llcommon/lltracerecording.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llcommon/lltracerecording.cpp b/indra/llcommon/lltracerecording.cpp
index 913c4cbdad..737b95cdd5 100644
--- a/indra/llcommon/lltracerecording.cpp
+++ b/indra/llcommon/lltracerecording.cpp
@@ -109,8 +109,18 @@ void Recording::handleSplitTo(Recording& other)
{
stop();
other.restart();
+ syncTo(other);
+}
+
+void Recording::syncTo(Recording& other)
+{
+ other.mCountsFloat.write()->reset(mCountsFloat);
other.mMeasurementsFloat.write()->reset(mMeasurementsFloat);
+ other.mCounts.write()->reset(mCounts);
other.mMeasurements.write()->reset(mMeasurements);
+ other.mStackTimers.write()->reset(mStackTimers);
+ other.mMemStats.write()->reset(mMemStats);
+
//TODO: figure out how to get seamless handoff of timing stats
}