LLFloaterLagMeter Class Reference

#include <llfloaterlagmeter.h>

Inheritance diagram for LLFloaterLagMeter:

Inheritance graph
[legend]
Collaboration diagram for LLFloaterLagMeter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void draw ()

Static Public Member Functions

static void show (void *)

Private Member Functions

 LLFloaterLagMeter ()
 ~LLFloaterLagMeter ()
void determineClient ()
void determineNetwork ()
void determineServer ()

Static Private Member Functions

static void onClickShrink (void *data)

Private Attributes

bool mShrunk
S32 mMaxWidth
S32 mMinWidth
F32 mClientFrameTimeCritical
F32 mClientFrameTimeWarning
LLButton * mClientButton
LLTextBox * mClientText
LLTextBox * mClientCause
F32 mNetworkPacketLossCritical
F32 mNetworkPacketLossWarning
F32 mNetworkPingCritical
F32 mNetworkPingWarning
LLButton * mNetworkButton
LLTextBox * mNetworkText
LLTextBox * mNetworkCause
F32 mServerFrameTimeCritical
F32 mServerFrameTimeWarning
F32 mServerSingleProcessMaxTime
LLButton * mServerButton
LLTextBox * mServerText
LLTextBox * mServerCause

Static Private Attributes

static LLFloaterLagMeter * sInstance = NULL

Detailed Description

Definition at line 37 of file llfloaterlagmeter.h.


Constructor & Destructor Documentation

LLFloaterLagMeter::LLFloaterLagMeter (  )  [private]

Definition at line 53 of file llfloaterlagmeter.cpp.

References LLUICtrlFactory::buildFloater(), LLPanel::childGetText(), LLPanel::childSetAction(), LLPanel::childSetTextArg(), LLControlGroup::getBOOL(), LLUICtrlFactory::getButtonByName(), LLUICtrlFactory::getTextBoxByName(), gSavedSettings, gUICtrlFactory, mClientButton, mClientCause, mClientFrameTimeCritical, mClientFrameTimeWarning, mClientText, mMaxWidth, mMinWidth, mNetworkButton, mNetworkCause, mNetworkPacketLossCritical, mNetworkPacketLossWarning, mNetworkPingCritical, mNetworkPingWarning, mNetworkText, mServerButton, mServerCause, mServerFrameTimeCritical, mServerFrameTimeWarning, mServerSingleProcessMaxTime, mServerText, mShrunk, onClickShrink(), LLFloater::setIsChrome(), and TRUE.

Referenced by show().

LLFloaterLagMeter::~LLFloaterLagMeter (  )  [private]

Definition at line 127 of file llfloaterlagmeter.cpp.

References gSavedSettings, mShrunk, NULL, onClickShrink(), LLControlGroup::setBOOL(), and sInstance.


Member Function Documentation

void LLFloaterLagMeter::determineClient (  )  [private]

Definition at line 156 of file llfloaterlagmeter.cpp.

References LLPanel::childGetText(), LLFocusMgr::getAppHasFocus(), LLControlGroup::getF32(), LLStat::getMeanDuration(), LLTextureFetch::getNumRequests(), gFocusMgr, gSavedSettings, gTextureFetch, gViewerStats, LAG_CRITICAL_IMAGE_NAME, LAG_GOOD_IMAGE_NAME, LAG_WARNING_IMAGE_NAME, mClientButton, mClientCause, mClientFrameTimeCritical, mClientFrameTimeWarning, mClientText, LLViewerStats::mFPSStat, LLStringBase< char >::null, LLViewerImage::sBoundTextureMemory, LLButton::setImageUnselected(), LLTextBox::setText(), and LLViewerImage::sMaxBoundTextureMem.

Referenced by draw().

void LLFloaterLagMeter::determineNetwork (  )  [private]

Definition at line 207 of file llfloaterlagmeter.cpp.

References LLPanel::childGetText(), LLStat::getMean(), gViewerStats, LAG_CRITICAL_IMAGE_NAME, LAG_GOOD_IMAGE_NAME, LAG_WARNING_IMAGE_NAME, mNetworkButton, mNetworkCause, mNetworkPacketLossCritical, mNetworkPacketLossWarning, mNetworkPingCritical, mNetworkPingWarning, mNetworkText, LLViewerStats::mPacketsLostPercentStat, LLViewerStats::mSimPingStat, LLStringBase< char >::null, LLButton::setImageUnselected(), and LLTextBox::setText().

Referenced by draw().

void LLFloaterLagMeter::determineServer (  )  [private]

Definition at line 258 of file llfloaterlagmeter.cpp.

References LLPanel::childGetText(), LLStat::getCurrent(), gViewerStats, LAG_CRITICAL_IMAGE_NAME, LAG_GOOD_IMAGE_NAME, LAG_WARNING_IMAGE_NAME, mServerButton, mServerCause, mServerFrameTimeCritical, mServerFrameTimeWarning, mServerSingleProcessMaxTime, mServerText, LLViewerStats::mSimAgentMsec, LLViewerStats::mSimFrameMsec, LLViewerStats::mSimImagesMsec, LLViewerStats::mSimNetMsec, LLViewerStats::mSimScriptMsec, LLViewerStats::mSimSimPhysicsMsec, LLStringBase< char >::null, LLButton::setImageUnselected(), and LLTextBox::setText().

Referenced by draw().

void LLFloaterLagMeter::draw (  )  [virtual]

Reimplemented from LLFloater.

Definition at line 140 of file llfloaterlagmeter.cpp.

References determineClient(), determineNetwork(), determineServer(), and LLFloater::draw().

void LLFloaterLagMeter::onClickShrink ( void *  data  )  [static, private]

Definition at line 312 of file llfloaterlagmeter.cpp.

References FALSE, r, S32, LLUICtrl::setFocus(), and LLButton::setLabel().

Referenced by LLFloaterLagMeter(), and ~LLFloaterLagMeter().

void LLFloaterLagMeter::show ( void *   )  [static]

Definition at line 150 of file llfloaterlagmeter.cpp.

References LLFloaterLagMeter(), LLFloater::open(), and sInstance.

Referenced by LLShowFloater::handleEvent().


Member Data Documentation

LLButton* LLFloaterLagMeter::mClientButton [private]

Definition at line 58 of file llfloaterlagmeter.h.

Referenced by determineClient(), and LLFloaterLagMeter().

LLTextBox* LLFloaterLagMeter::mClientCause [private]

Definition at line 60 of file llfloaterlagmeter.h.

Referenced by determineClient(), and LLFloaterLagMeter().

F32 LLFloaterLagMeter::mClientFrameTimeCritical [private]

Definition at line 56 of file llfloaterlagmeter.h.

Referenced by determineClient(), and LLFloaterLagMeter().

F32 LLFloaterLagMeter::mClientFrameTimeWarning [private]

Definition at line 57 of file llfloaterlagmeter.h.

Referenced by determineClient(), and LLFloaterLagMeter().

LLTextBox* LLFloaterLagMeter::mClientText [private]

Definition at line 59 of file llfloaterlagmeter.h.

Referenced by determineClient(), and LLFloaterLagMeter().

S32 LLFloaterLagMeter::mMaxWidth [private]

Definition at line 54 of file llfloaterlagmeter.h.

Referenced by LLFloaterLagMeter().

S32 LLFloaterLagMeter::mMinWidth [private]

Reimplemented from LLFloater.

Definition at line 54 of file llfloaterlagmeter.h.

Referenced by LLFloaterLagMeter().

LLButton* LLFloaterLagMeter::mNetworkButton [private]

Definition at line 66 of file llfloaterlagmeter.h.

Referenced by determineNetwork(), and LLFloaterLagMeter().

LLTextBox* LLFloaterLagMeter::mNetworkCause [private]

Definition at line 68 of file llfloaterlagmeter.h.

Referenced by determineNetwork(), and LLFloaterLagMeter().

F32 LLFloaterLagMeter::mNetworkPacketLossCritical [private]

Definition at line 62 of file llfloaterlagmeter.h.

Referenced by determineNetwork(), and LLFloaterLagMeter().

F32 LLFloaterLagMeter::mNetworkPacketLossWarning [private]

Definition at line 63 of file llfloaterlagmeter.h.

Referenced by determineNetwork(), and LLFloaterLagMeter().

F32 LLFloaterLagMeter::mNetworkPingCritical [private]

Definition at line 64 of file llfloaterlagmeter.h.

Referenced by determineNetwork(), and LLFloaterLagMeter().

F32 LLFloaterLagMeter::mNetworkPingWarning [private]

Definition at line 65 of file llfloaterlagmeter.h.

Referenced by determineNetwork(), and LLFloaterLagMeter().

LLTextBox* LLFloaterLagMeter::mNetworkText [private]

Definition at line 67 of file llfloaterlagmeter.h.

Referenced by determineNetwork(), and LLFloaterLagMeter().

LLButton* LLFloaterLagMeter::mServerButton [private]

Definition at line 73 of file llfloaterlagmeter.h.

Referenced by determineServer(), and LLFloaterLagMeter().

LLTextBox* LLFloaterLagMeter::mServerCause [private]

Definition at line 75 of file llfloaterlagmeter.h.

Referenced by determineServer(), and LLFloaterLagMeter().

F32 LLFloaterLagMeter::mServerFrameTimeCritical [private]

Definition at line 70 of file llfloaterlagmeter.h.

Referenced by determineServer(), and LLFloaterLagMeter().

F32 LLFloaterLagMeter::mServerFrameTimeWarning [private]

Definition at line 71 of file llfloaterlagmeter.h.

Referenced by determineServer(), and LLFloaterLagMeter().

F32 LLFloaterLagMeter::mServerSingleProcessMaxTime [private]

Definition at line 72 of file llfloaterlagmeter.h.

Referenced by determineServer(), and LLFloaterLagMeter().

LLTextBox* LLFloaterLagMeter::mServerText [private]

Definition at line 74 of file llfloaterlagmeter.h.

Referenced by determineServer(), and LLFloaterLagMeter().

bool LLFloaterLagMeter::mShrunk [private]

Definition at line 53 of file llfloaterlagmeter.h.

Referenced by LLFloaterLagMeter(), and ~LLFloaterLagMeter().

LLFloaterLagMeter * LLFloaterLagMeter::sInstance = NULL [static, private]

Definition at line 77 of file llfloaterlagmeter.h.

Referenced by show(), and ~LLFloaterLagMeter().


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