LLStatAccum::impl Class Reference

Collaboration diagram for LLStatAccum::impl:

Collaboration graph
List of all members.

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]


struct  Bucket

Detailed Description

Definition at line 37 of file llstat.cpp.

Constructor & Destructor Documentation

LLStatAccum::impl::impl ( bool  useFrameTimer  ) 

Definition at line 91 of file llstat.cpp.

References FALSE, mLastSampleValid, mRunning, and mUseFrameTimer.

Member Function Documentation

U64 LLStatAccum::impl::getCurrentUsecs (  )  const

Definition at line 211 of file llstat.cpp.

References LLFrameTimer::getTotalTime(), mUseFrameTimer, and totalTime().

Referenced by sum().

F32 LLStatAccum::impl::meanValue ( TimeScale  scale  )  const

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().

void LLStatAccum::impl::reset ( U64  when  ) 

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().

void LLStatAccum::impl::sum ( F64  value,
U64  when 

Definition at line 116 of file llstat.cpp.

References i, IMPL_NUM_SCALES, lldebugs, llendl, mBuckets, mLastTime, mRunning, reset(), sScaleTimes, and TRUE.

void LLStatAccum::impl::sum ( F64  value  ) 

Definition at line 111 of file llstat.cpp.

References getCurrentUsecs().

Member Data Documentation

const TimeScale LLStatAccum::impl::IMPL_NUM_SCALES = (TimeScale)(SCALE_TWO_MINUTE + 1) [static]

Definition at line 40 of file llstat.cpp.

Referenced by meanValue(), reset(), and sum().

Bucket LLStatAccum::impl::mBuckets[IMPL_NUM_SCALES]

Definition at line 57 of file llstat.cpp.

Referenced by meanValue(), reset(), and sum().

BOOL LLStatAccum::impl::mLastSampleValid

Definition at line 59 of file llstat.cpp.

Referenced by impl().

F64 LLStatAccum::impl::mLastSampleValue

Definition at line 60 of file llstat.cpp.

U64 LLStatAccum::impl::mLastTime

Definition at line 46 of file llstat.cpp.

Referenced by meanValue(), reset(), and sum().

BOOL LLStatAccum::impl::mRunning

Definition at line 45 of file llstat.cpp.

Referenced by impl(), meanValue(), reset(), and sum().

BOOL LLStatAccum::impl::mUseFrameTimer

Definition at line 43 of file llstat.cpp.

Referenced by getCurrentUsecs(), and impl().

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().

The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:11:48 2010 for Second Life Viewer by  doxygen 1.4.7