#include <llfloaterlagmeter.h>
Inheritance diagram for LLFloaterLagMeter:
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 |
Definition at line 37 of file llfloaterlagmeter.h.
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.
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().
Definition at line 312 of file llfloaterlagmeter.cpp.
References FALSE, r, S32, LLUICtrl::setFocus(), and LLButton::setLabel().
Referenced by LLFloaterLagMeter(), and ~LLFloaterLagMeter().
Definition at line 150 of file llfloaterlagmeter.cpp.
References LLFloaterLagMeter(), LLFloater::open(), and sInstance.
Referenced by LLShowFloater::handleEvent().
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().
Definition at line 56 of file llfloaterlagmeter.h.
Referenced by determineClient(), and LLFloaterLagMeter().
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] |
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().
Definition at line 62 of file llfloaterlagmeter.h.
Referenced by determineNetwork(), and LLFloaterLagMeter().
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().
Definition at line 70 of file llfloaterlagmeter.h.
Referenced by determineServer(), and LLFloaterLagMeter().
Definition at line 71 of file llfloaterlagmeter.h.
Referenced by determineServer(), and LLFloaterLagMeter().
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] |