From 960f8764ad2407add941bc8650b295f1e77beb19 Mon Sep 17 00:00:00 2001
From: Richard Linden <none@none>
Date: Fri, 5 Oct 2012 11:44:36 -0700
Subject: [PATCH] SH-3405 WIP convert existing stats to lltrace system added
 update() method to trace recorders to allow mid-collection snapshots

---
 indra/llcommon/lltracerecording.cpp | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/indra/llcommon/lltracerecording.cpp b/indra/llcommon/lltracerecording.cpp
index c44cc8a8a70..f0b17ef1004 100644
--- a/indra/llcommon/lltracerecording.cpp
+++ b/indra/llcommon/lltracerecording.cpp
@@ -65,8 +65,12 @@ void Recording::reset()
 
 void Recording::update()
 {
-	mElapsedSeconds = 0.0;
-	mSamplingTimer.reset();
+	if (mIsStarted)
+	{
+		LLTrace::get_thread_recorder()->update(this);
+		mElapsedSeconds = 0.0;
+		mSamplingTimer.reset();
+	}
 }
 
 void Recording::resume()
-- 
GitLab