diff options
author | Richard Linden <none@none> | 2012-10-05 11:44:36 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2012-10-05 11:44:36 -0700 |
commit | 960f8764ad2407add941bc8650b295f1e77beb19 (patch) | |
tree | c8a0624d95ebd06b2ab6f2e7e93437c7e79672b1 /indra/llcommon | |
parent | 4dce574a8d604a501ec3c12eef3f5d03ee188473 (diff) |
SH-3405 WIP convert existing stats to lltrace system
added update() method to trace recorders to allow mid-collection snapshots
Diffstat (limited to 'indra/llcommon')
-rw-r--r-- | indra/llcommon/lltracerecording.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/llcommon/lltracerecording.cpp b/indra/llcommon/lltracerecording.cpp index c44cc8a8a7..f0b17ef100 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() |