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.
void LLStatAccum::impl::reset | ( | U64 | when | ) |
Definition at line 98 of file llstat.cpp.
References LLStatAccum::impl::Bucket::accum, LLStatAccum::impl::Bucket::endTime, FALSE, i, IMPL_NUM_SCALES, LLStatAccum::impl::Bucket::lastValid, mBuckets, mLastTime, mRunning, sScaleTimes, and TRUE.
Referenced by LLStatMeasure::sample(), and sum().
void LLStatAccum::impl::sum | ( | F64 | value | ) |
Definition at line 111 of file llstat.cpp.
References getCurrentUsecs().
Referenced by LLStatRate::count(), LLStatMeasure::sample(), LLStatTime::start(), and LLStatTime::stop().
Definition at line 116 of file llstat.cpp.
References LLStatAccum::impl::Bucket::accum, LLStatAccum::impl::Bucket::endTime, i, IMPL_NUM_SCALES, LLStatAccum::impl::Bucket::lastAccum, LLStatAccum::impl::Bucket::lastValid, lldebugs, llendl, mBuckets, mLastTime, mRunning, reset(), sScaleTimes, and TRUE.
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().
U64 LLStatAccum::impl::getCurrentUsecs | ( | ) | const |
Definition at line 211 of file llstat.cpp.
References LLFrameTimer::getTotalTime(), mUseFrameTimer, and totalTime().
Referenced by LLStatMeasure::sample(), LLStatTime::stop(), and sum().
const TimeScale LLStatAccum::impl::IMPL_NUM_SCALES = (TimeScale)(SCALE_TWO_MINUTE + 1) [static] |
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 LLStatRate::count(), meanValue(), reset(), and sum().
Definition at line 46 of file llstat.cpp.
Referenced by meanValue(), reset(), LLStatMeasure::sample(), LLStatTime::stop(), and sum().