Public Member Functions | |
impl (bool useFrameTimer) | |
void | reset (U64 when) |
void | sum (F64 value) |
void | sum (F64 value, U64 when) |
F32 | meanValue (TimeScale scale) const |
U64 | getCurrentUsecs () const |
Public Attributes | |
BOOL | mUseFrameTimer |
BOOL | mRunning |
U64 | mLastTime |
Bucket | mBuckets [IMPL_NUM_SCALES] |
BOOL | mLastSampleValid |
F64 | mLastSampleValue |
Static Public Attributes | |
static const TimeScale | IMPL_NUM_SCALES = (TimeScale)(SCALE_TWO_MINUTE + 1) |
static U64 | sScaleTimes [IMPL_NUM_SCALES] |
Classes | |
struct | Bucket |
Definition at line 37 of file llstat.cpp.
LLStatAccum::impl::impl | ( | bool | useFrameTimer | ) |
Definition at line 91 of file llstat.cpp.
References FALSE, mLastSampleValid, mRunning, and mUseFrameTimer.
U64 LLStatAccum::impl::getCurrentUsecs | ( | ) | const |
Definition at line 211 of file llstat.cpp.
References LLFrameTimer::getTotalTime(), mUseFrameTimer, and totalTime().
Referenced by sum().
Definition at line 175 of file llstat.cpp.
References LLStatAccum::impl::Bucket::accum, LLStatAccum::impl::Bucket::endTime, IMPL_NUM_SCALES, LLStatAccum::impl::Bucket::lastAccum, LLStatAccum::impl::Bucket::lastValid, llendl, llwarns, mBuckets, mLastTime, mRunning, and sScaleTimes.
Referenced by LLStatAccum::meanValue().
Definition at line 98 of file llstat.cpp.
References LLStatAccum::impl::Bucket::endTime, FALSE, i, IMPL_NUM_SCALES, LLStatAccum::impl::Bucket::lastValid, mBuckets, mLastTime, mRunning, sScaleTimes, and TRUE.
Referenced by sum().
Definition at line 116 of file llstat.cpp.
References i, IMPL_NUM_SCALES, lldebugs, llendl, mBuckets, mLastTime, mRunning, reset(), sScaleTimes, and TRUE.
const TimeScale LLStatAccum::impl::IMPL_NUM_SCALES = (TimeScale)(SCALE_TWO_MINUTE + 1) [static] |
Definition at line 60 of file llstat.cpp.
U64 LLStatAccum::impl::sScaleTimes [static] |
Initial value:
{ USEC_PER_SEC * 1, USEC_PER_SEC * 60, USEC_PER_SEC * 60 * 2 }
Definition at line 41 of file llstat.cpp.
Referenced by meanValue(), reset(), and sum().