diff options
author | Richard Linden <none@none> | 2012-09-05 19:04:53 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2012-09-05 19:04:53 -0700 |
commit | 2cdfb170216c798c637081b0e28ec8921f0b777b (patch) | |
tree | 105b83ec636c6dee55ca688302004c253ffea080 | |
parent | 6814906fec95aeb90dbc99605f74f241a72af12b (diff) |
SH-3275 WIP Run viewer metrics for object update messages
renamed some variables in lltrace
-rw-r--r-- | indra/llcommon/lltrace.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/indra/llcommon/lltrace.h b/indra/llcommon/lltrace.h index 6323091cb8..f3ee90a721 100644 --- a/indra/llcommon/lltrace.h +++ b/indra/llcommon/lltrace.h @@ -51,18 +51,18 @@ namespace LLTrace struct Accumulator { - U32 mSelfTimeCounter; U32 mTotalTimeCounter; + U32 mChildTimeCounter; U32 mCalls; Accumulator* mParent; // info for caller timer Accumulator* mLastCaller; // used to bootstrap tree construction const BlockTimer* mTimer; // points to block timer associated with this storage - U16 mActiveCount; // number of timers with this ID active on stack + U8 mActiveCount; // number of timers with this ID active on stack bool mMoveUpTree; // needs to be moved up the tree of timers at the end of frame std::vector<Accumulator*> mChildren; // currently assumed child timers }; - struct RecorderHead + struct RecorderStackEntry { struct Recorder* mRecorder; Accumulator* mAccumulator; @@ -72,7 +72,7 @@ namespace LLTrace struct Recorder { LL_FORCE_INLINE Recorder(BlockTimer& block_timer) - : mLastHead(sRecorderHead) + : mLastRecorder(sCurRecorder) { mStartTime = getCPUClockCount32(); Accumulator* accumulator = ???; // get per-thread accumulator @@ -81,28 +81,28 @@ namespace LLTrace accumulator->mMoveUpTree |= (accumulator->mParent->mActiveCount == 0); // push new timer on stack - sRecorderHead.mRecorder = this; - sRecorderHead.mAccumulator = accumulator; - sRecorderHead.mChildTime = 0; + sCurRecorder.mRecorder = this; + sCurRecorder.mAccumulator = accumulator; + sCurRecorder.mChildTime = 0; } LL_FORCE_INLINE ~Recorder() { U32 total_time = getCPUClockCount32() - mStartTime; - Accumulator* accumulator = sRecorderHead.mAccumulator; - accumulator->mSelfTimeCounter += total_time- sRecorderHead.mChildTime; + Accumulator* accumulator = sCurRecorder.mAccumulator; accumulator->mTotalTimeCounter += total_time; + accumulator->mChildTimeCounter += sCurRecorder.mChildTime; accumulator->mActiveCount--; - accumulator->mLastCaller = mLastHead->mAccumulator; - mLastHead->mChildTime += total_time; + accumulator->mLastCaller = mLastRecorder->mAccumulator; + mLastRecorder->mChildTime += total_time; // pop stack - sRecorderHead = mLastHead; + sCurRecorder = mLastRecorder; } - AccumulatorHead mLastHead; + RecorderStackEntry mLastRecorder; U32 mStartTime; }; @@ -139,10 +139,10 @@ namespace LLTrace } const std::string mName; - static RecorderHead* sRecorderHead; + static RecorderStackEntry* sCurRecorder; }; - BlockTimer::RecorderHead BlockTimer::sRecorderHead; + BlockTimer::RecorderStackEntry BlockTimer::sCurRecorder; class TimeInterval { |