Skip to content
Snippets Groups Projects
Commit 8bb0a6ef authored by Richard Linden's avatar Richard Linden
Browse files

post merge cleanup

parent f5852ff4
No related branches found
No related tags found
No related merge requests found
...@@ -46,6 +46,16 @@ Recording::Recording() ...@@ -46,6 +46,16 @@ Recording::Recording()
Recording::~Recording() Recording::~Recording()
{} {}
void Recording::update()
{
if (isStarted())
{
LLTrace::get_thread_recorder()->update(this);
mElapsedSeconds = 0.0;
mSamplingTimer.reset();
}
}
void Recording::handleReset() void Recording::handleReset()
{ {
mRates.write()->reset(); mRates.write()->reset();
...@@ -56,27 +66,17 @@ void Recording::handleReset() ...@@ -56,27 +66,17 @@ void Recording::handleReset()
mSamplingTimer.reset(); mSamplingTimer.reset();
} }
void Recording::update()
{
if (mIsStarted)
{
LLTrace::get_thread_recorder()->update(this);
mElapsedSeconds = 0.0;
mSamplingTimer.reset();
}
}
void Recording::handleStart() void Recording::handleStart()
{ {
mSamplingTimer.reset(); mSamplingTimer.reset();
LLTrace::get_thread_recorder()->activate(this); LLTrace::get_thread_recorder()->activate(this);
} }
void Recording::handleStop() void Recording::handleStop()
{ {
mElapsedSeconds += mSamplingTimer.getElapsedTimeF64(); mElapsedSeconds += mSamplingTimer.getElapsedTimeF64();
LLTrace::get_thread_recorder()->deactivate(this); LLTrace::get_thread_recorder()->deactivate(this);
} }
void Recording::handleSplitTo(Recording& other) void Recording::handleSplitTo(Recording& other)
{ {
......
...@@ -254,7 +254,7 @@ namespace LLTrace ...@@ -254,7 +254,7 @@ namespace LLTrace
mCurPeriod(0), mCurPeriod(0),
mTotalValid(false), mTotalValid(false),
mRecordingPeriods(new Recording[num_periods]) mRecordingPeriods(new Recording[num_periods])
{ {
llassert(mNumPeriods > 0); llassert(mNumPeriods > 0);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment