LLViewerStats Class Reference

#include <llviewerstats.h>

Collaboration diagram for LLViewerStats:

Collaboration graph
[legend]
List of all members.

Public Types

 ST_VERSION = 0
 ST_AVATAR_EDIT_SECONDS = 1
 ST_TOOLBOX_SECONDS = 2
 ST_CHAT_COUNT = 3
 ST_IM_COUNT = 4
 ST_FULLSCREEN_BOOL = 5
 ST_RELEASE_COUNT = 6
 ST_CREATE_COUNT = 7
 ST_REZ_COUNT = 8
 ST_FPS_10_SECONDS = 9
 ST_FPS_2_SECONDS = 10
 ST_MOUSELOOK_SECONDS = 11
 ST_FLY_COUNT = 12
 ST_TELEPORT_COUNT = 13
 ST_OBJECT_DELETE_COUNT = 14
 ST_SNAPSHOT_COUNT = 15
 ST_UPLOAD_SOUND_COUNT = 16
 ST_UPLOAD_TEXTURE_COUNT = 17
 ST_EDIT_TEXTURE_COUNT = 18
 ST_KILLED_COUNT = 19
 ST_FRAMETIME_JITTER = 20
 ST_FRAMETIME_SLEW = 21
 ST_INVENTORY_TOO_LONG = 22
 ST_WEARABLES_TOO_LONG = 23
 ST_LOGIN_SECONDS = 24
 ST_LOGIN_TIMEOUT_COUNT = 25
 ST_HAS_BAD_TIMER = 26
 ST_DOWNLOAD_FAILED = 27
 ST_LSL_SAVE_COUNT = 28
 ST_UPLOAD_ANIM_COUNT = 29
 ST_FPS_8_SECONDS = 30
 ST_SIM_FPS_20_SECONDS = 31
 ST_PHYS_FPS_20_SECONDS = 32
 ST_LOSS_05_SECONDS = 33
 ST_FPS_DROP_50_RATIO = 34
 ST_ENABLE_VBO = 35
 ST_DELTA_BANDWIDTH = 36
 ST_MAX_BANDWIDTH = 37
 ST_LIGHTING_DETAIL = 38
 ST_VISIBLE_AVATARS = 39
 ST_SHADER_OBJECTS = 40
 ST_SHADER_ENVIRONMENT = 41
 ST_DRAW_DIST = 42
 ST_CHAT_BUBBLES = 43
 ST_SHADER_AVATAR = 44
 ST_FRAME_SECS = 45
 ST_UPDATE_SECS = 46
 ST_NETWORK_SECS = 47
 ST_IMAGE_SECS = 48
 ST_REBUILD_SECS = 49
 ST_RENDER_SECS = 50
 ST_CROSSING_AVG = 51
 ST_CROSSING_MAX = 52
 ST_LIBXUL_WIDGET_USED = 53
 ST_WINDOW_WIDTH = 54
 ST_WINDOW_HEIGHT = 55
 ST_TEX_BAKES = 56
 ST_TEX_REBAKES = 57
 ST_LOGITECH_LCD = 58
 ST_COUNT = 59
enum  EStatType {
  ST_VERSION = 0, ST_AVATAR_EDIT_SECONDS = 1, ST_TOOLBOX_SECONDS = 2, ST_CHAT_COUNT = 3,
  ST_IM_COUNT = 4, ST_FULLSCREEN_BOOL = 5, ST_RELEASE_COUNT = 6, ST_CREATE_COUNT = 7,
  ST_REZ_COUNT = 8, ST_FPS_10_SECONDS = 9, ST_FPS_2_SECONDS = 10, ST_MOUSELOOK_SECONDS = 11,
  ST_FLY_COUNT = 12, ST_TELEPORT_COUNT = 13, ST_OBJECT_DELETE_COUNT = 14, ST_SNAPSHOT_COUNT = 15,
  ST_UPLOAD_SOUND_COUNT = 16, ST_UPLOAD_TEXTURE_COUNT = 17, ST_EDIT_TEXTURE_COUNT = 18, ST_KILLED_COUNT = 19,
  ST_FRAMETIME_JITTER = 20, ST_FRAMETIME_SLEW = 21, ST_INVENTORY_TOO_LONG = 22, ST_WEARABLES_TOO_LONG = 23,
  ST_LOGIN_SECONDS = 24, ST_LOGIN_TIMEOUT_COUNT = 25, ST_HAS_BAD_TIMER = 26, ST_DOWNLOAD_FAILED = 27,
  ST_LSL_SAVE_COUNT = 28, ST_UPLOAD_ANIM_COUNT = 29, ST_FPS_8_SECONDS = 30, ST_SIM_FPS_20_SECONDS = 31,
  ST_PHYS_FPS_20_SECONDS = 32, ST_LOSS_05_SECONDS = 33, ST_FPS_DROP_50_RATIO = 34, ST_ENABLE_VBO = 35,
  ST_DELTA_BANDWIDTH = 36, ST_MAX_BANDWIDTH = 37, ST_LIGHTING_DETAIL = 38, ST_VISIBLE_AVATARS = 39,
  ST_SHADER_OBJECTS = 40, ST_SHADER_ENVIRONMENT = 41, ST_DRAW_DIST = 42, ST_CHAT_BUBBLES = 43,
  ST_SHADER_AVATAR = 44, ST_FRAME_SECS = 45, ST_UPDATE_SECS = 46, ST_NETWORK_SECS = 47,
  ST_IMAGE_SECS = 48, ST_REBUILD_SECS = 49, ST_RENDER_SECS = 50, ST_CROSSING_AVG = 51,
  ST_CROSSING_MAX = 52, ST_LIBXUL_WIDGET_USED = 53, ST_WINDOW_WIDTH = 54, ST_WINDOW_HEIGHT = 55,
  ST_TEX_BAKES = 56, ST_TEX_REBAKES = 57, ST_LOGITECH_LCD = 58, ST_COUNT = 59
}

Public Member Functions

void resetStats ()
 LLViewerStats ()
 ~LLViewerStats ()
F64 getStat (EStatType type) const
F64 setStat (EStatType type, F64 value)
F64 incStat (EStatType type, F64 value=1.f)
void updateFrameStats (const F64 time_diff)
void addToMessage (LLSD &body) const

Static Public Member Functions

static const char * statTypeToText (EStatType type)

Public Attributes

LLStat mKBitStat
LLStat mLayersKBitStat
LLStat mObjectKBitStat
LLStat mAssetKBitStat
LLStat mTextureKBitStat
LLStat mVFSPendingOperations
LLStat mObjectsDrawnStat
LLStat mObjectsCulledStat
LLStat mObjectsTestedStat
LLStat mObjectsComparedStat
LLStat mObjectsOccludedStat
LLStat mFPSStat
LLStat mPacketsInStat
LLStat mPacketsLostStat
LLStat mPacketsOutStat
LLStat mPacketsLostPercentStat
LLStat mTexturePacketsStat
LLStat mActualInKBitStat
LLStat mActualOutKBitStat
LLStat mSimTimeDilation
LLStat mSimFPS
LLStat mSimPhysicsFPS
LLStat mSimAgentUPS
LLStat mSimLSLIPS
LLStat mSimFrameMsec
LLStat mSimNetMsec
LLStat mSimSimOtherMsec
LLStat mSimSimPhysicsMsec
LLStat mSimAgentMsec
LLStat mSimImagesMsec
LLStat mSimScriptMsec
LLStat mSimMainAgents
LLStat mSimChildAgents
LLStat mSimObjects
LLStat mSimActiveObjects
LLStat mSimActiveScripts
LLStat mSimInPPS
LLStat mSimOutPPS
LLStat mSimPendingDownloads
LLStat mSimPendingUploads
LLStat mSimPendingLocalUploads
LLStat mSimTotalUnackedBytes
LLStat mSimPingStat
LLStat mUserserverPingStat

Private Attributes

F64 mStats [ST_COUNT]
F64 mLastTimeDiff

Detailed Description

Definition at line 37 of file llviewerstats.h.


Member Enumeration Documentation

enum LLViewerStats::EStatType

Enumerator:
ST_VERSION 
ST_AVATAR_EDIT_SECONDS 
ST_TOOLBOX_SECONDS 
ST_CHAT_COUNT 
ST_IM_COUNT 
ST_FULLSCREEN_BOOL 
ST_RELEASE_COUNT 
ST_CREATE_COUNT 
ST_REZ_COUNT 
ST_FPS_10_SECONDS 
ST_FPS_2_SECONDS 
ST_MOUSELOOK_SECONDS 
ST_FLY_COUNT 
ST_TELEPORT_COUNT 
ST_OBJECT_DELETE_COUNT 
ST_SNAPSHOT_COUNT 
ST_UPLOAD_SOUND_COUNT 
ST_UPLOAD_TEXTURE_COUNT 
ST_EDIT_TEXTURE_COUNT 
ST_KILLED_COUNT 
ST_FRAMETIME_JITTER 
ST_FRAMETIME_SLEW 
ST_INVENTORY_TOO_LONG 
ST_WEARABLES_TOO_LONG 
ST_LOGIN_SECONDS 
ST_LOGIN_TIMEOUT_COUNT 
ST_HAS_BAD_TIMER 
ST_DOWNLOAD_FAILED 
ST_LSL_SAVE_COUNT 
ST_UPLOAD_ANIM_COUNT 
ST_FPS_8_SECONDS 
ST_SIM_FPS_20_SECONDS 
ST_PHYS_FPS_20_SECONDS 
ST_LOSS_05_SECONDS 
ST_FPS_DROP_50_RATIO 
ST_ENABLE_VBO 
ST_DELTA_BANDWIDTH 
ST_MAX_BANDWIDTH 
ST_LIGHTING_DETAIL 
ST_VISIBLE_AVATARS 
ST_SHADER_OBJECTS 
ST_SHADER_ENVIRONMENT 
ST_DRAW_DIST 
ST_CHAT_BUBBLES 
ST_SHADER_AVATAR 
ST_FRAME_SECS 
ST_UPDATE_SECS 
ST_NETWORK_SECS 
ST_IMAGE_SECS 
ST_REBUILD_SECS 
ST_RENDER_SECS 
ST_CROSSING_AVG 
ST_CROSSING_MAX 
ST_LIBXUL_WIDGET_USED 
ST_WINDOW_WIDTH 
ST_WINDOW_HEIGHT 
ST_TEX_BAKES 
ST_TEX_REBAKES 
ST_LOGITECH_LCD 
ST_COUNT 

Definition at line 103 of file llviewerstats.h.


Constructor & Destructor Documentation

LLViewerStats::LLViewerStats (  ) 

Definition at line 186 of file llviewerstats.cpp.

References i, LLTimer::knownBadTimer(), mStats, S32, ST_COUNT, and ST_HAS_BAD_TIMER.

LLViewerStats::~LLViewerStats (  ) 

Definition at line 201 of file llviewerstats.cpp.


Member Function Documentation

void LLViewerStats::addToMessage ( LLSD body  )  const

Definition at line 298 of file llviewerstats.cpp.

References i, llendl, llinfos, StatAttributes::mName, mStats, S32, ST_COUNT, and STAT_INFO.

Referenced by send_stats().

F64 LLViewerStats::getStat ( EStatType  type  )  const

Definition at line 221 of file llviewerstats.cpp.

References mStats.

Referenced by LLSelectMgr::confirmDelete(), updateFrameStats(), and LLVOAvatar::updateRegion().

F64 LLViewerStats::incStat ( EStatType  type,
F64  value = 1.f 
)

Definition at line 232 of file llviewerstats.cpp.

References mStats.

Referenced by add_object(), LLScriptEdCore::doSave(), LLToolDragAndDrop::dropObject(), LLToolDragAndDrop::dropTextureAllFaces(), LLToolDragAndDrop::dropTextureOneFace(), LLVOAvatar::forceBakeAllTextures(), handle_deed_object_to_group(), idle_startup(), LLPanelFace::onCommitTexture(), onCovenantLoadComplete(), LLLiveLSLEditor::onLoadComplete(), LLPreviewLSL::onLoadComplete(), LLPreviewNotecard::onLoadComplete(), LLPreviewGesture::onLoadComplete(), LLGestureManager::onLoadComplete(), LLPanelEstateCovenant::onLoadComplete(), process_alert_core(), LLWearableList::processGetAssetReply(), LLLandmarkList::processGetAssetReply(), LLVOAvatar::processRebakeAvatarTextures(), LLTexLayerSetBuffer::readBackAndUpload(), LLSnapshotLivePreview::saveTexture(), LLFloaterCompileQueue::scriptArrived(), LLAgent::sendChat(), LLFloaterIMPanel::sendMsg(), LLViewerCircuit::sendReply(), LLAgent::setFlying(), LLFloaterAvatarList::speakText(), LLAgent::teleportCore(), update_statistics(), updateFrameStats(), and upload_new_resource().

void LLViewerStats::resetStats (  ) 

Definition at line 205 of file llviewerstats.cpp.

References gViewerStats, mAssetKBitStat, mFPSStat, mKBitStat, mLayersKBitStat, mObjectKBitStat, mPacketsInStat, mPacketsLostStat, mPacketsOutStat, mTextureKBitStat, mTexturePacketsStat, mVFSPendingOperations, and LLStat::reset().

Referenced by idle_startup().

F64 LLViewerStats::setStat ( EStatType  type,
F64  value 
)

Definition at line 226 of file llviewerstats.cpp.

References mStats.

Referenced by LLSelectMgr::confirmDelete(), LLViewerWindow::reshape(), update_statistics(), updateFrameStats(), and LLVOAvatar::updateRegion().

const char * LLViewerStats::statTypeToText ( EStatType  type  )  [static]

Definition at line 315 of file llviewerstats.cpp.

References StatAttributes::mName, ST_COUNT, and STAT_INFO.

void LLViewerStats::updateFrameStats ( const F64  time_diff  ) 

Definition at line 238 of file llviewerstats.cpp.

References f, LLStat::getCurrent(), LLViewerThrottle::getCurrentBandwidth(), LLTimer::getElapsedTimeF32(), LLViewerThrottle::getMaxBandwidth(), getStat(), gFrameCount, gRenderStartTime, gViewerThrottle, incStat(), mLastTimeDiff, mPacketsLostPercentStat, mSimFPS, mSimPhysicsFPS, setStat(), ST_DELTA_BANDWIDTH, ST_FPS_10_SECONDS, ST_FPS_2_SECONDS, ST_FPS_8_SECONDS, ST_FPS_DROP_50_RATIO, ST_FRAMETIME_JITTER, ST_FRAMETIME_SLEW, ST_LOSS_05_SECONDS, ST_MAX_BANDWIDTH, ST_PHYS_FPS_20_SECONDS, and ST_SIM_FPS_20_SECONDS.

Referenced by LLViewerObjectList::update().


Member Data Documentation

LLStat LLViewerStats::mActualInKBitStat

Definition at line 57 of file llviewerstats.h.

Referenced by init_stat_view(), and LLWorld::updateNetStats().

LLStat LLViewerStats::mActualOutKBitStat

Definition at line 58 of file llviewerstats.h.

Referenced by init_stat_view(), and LLWorld::updateNetStats().

LLStat LLViewerStats::mAssetKBitStat

Definition at line 43 of file llviewerstats.h.

Referenced by init_stat_view(), resetStats(), and update_statistics().

LLStat LLViewerStats::mFPSStat

Definition at line 51 of file llviewerstats.h.

Referenced by LLFloaterLagMeter::determineClient(), LLViewerWindow::handlePaint(), init_stat_view(), resetStats(), send_agent_resume(), and update_statistics().

LLStat LLViewerStats::mKBitStat

Definition at line 40 of file llviewerstats.h.

Referenced by init_stat_view(), resetStats(), and LLWorld::updateNetStats().

F64 LLViewerStats::mLastTimeDiff [private]

Definition at line 186 of file llviewerstats.h.

Referenced by updateFrameStats().

LLStat LLViewerStats::mLayersKBitStat

Definition at line 41 of file llviewerstats.h.

Referenced by init_stat_view(), resetStats(), and update_statistics().

LLStat LLViewerStats::mObjectKBitStat

Definition at line 42 of file llviewerstats.h.

Referenced by init_stat_view(), resetStats(), and update_statistics().

LLStat LLViewerStats::mObjectsComparedStat

Definition at line 49 of file llviewerstats.h.

LLStat LLViewerStats::mObjectsCulledStat

Definition at line 47 of file llviewerstats.h.

LLStat LLViewerStats::mObjectsDrawnStat

Definition at line 46 of file llviewerstats.h.

LLStat LLViewerStats::mObjectsOccludedStat

Definition at line 50 of file llviewerstats.h.

LLStat LLViewerStats::mObjectsTestedStat

Definition at line 48 of file llviewerstats.h.

LLStat LLViewerStats::mPacketsInStat

Definition at line 52 of file llviewerstats.h.

Referenced by init_stat_view(), resetStats(), and LLWorld::updateNetStats().

LLStat LLViewerStats::mPacketsLostPercentStat

Definition at line 55 of file llviewerstats.h.

Referenced by LLFloaterLagMeter::determineNetwork(), init_stat_view(), LLViewerThrottle::updateDynamicThrottle(), updateFrameStats(), and LLWorld::updateNetStats().

LLStat LLViewerStats::mPacketsLostStat

Definition at line 53 of file llviewerstats.h.

Referenced by LLFloaterAbout::LLFloaterAbout(), resetStats(), and LLWorld::updateNetStats().

LLStat LLViewerStats::mPacketsOutStat

Definition at line 54 of file llviewerstats.h.

Referenced by init_stat_view(), resetStats(), and LLWorld::updateNetStats().

LLStat LLViewerStats::mSimActiveObjects

Definition at line 79 of file llviewerstats.h.

Referenced by init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimActiveScripts

Definition at line 80 of file llviewerstats.h.

Referenced by init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimAgentMsec

Definition at line 72 of file llviewerstats.h.

Referenced by LLFloaterLagMeter::determineServer(), init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimAgentUPS

Definition at line 65 of file llviewerstats.h.

Referenced by init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimChildAgents

Definition at line 77 of file llviewerstats.h.

Referenced by init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimFPS

Definition at line 63 of file llviewerstats.h.

Referenced by init_stat_view(), process_sim_stats(), and updateFrameStats().

LLStat LLViewerStats::mSimFrameMsec

Definition at line 68 of file llviewerstats.h.

Referenced by LLFloaterLagMeter::determineServer(), init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimImagesMsec

Definition at line 73 of file llviewerstats.h.

Referenced by LLFloaterLagMeter::determineServer(), init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimInPPS

Definition at line 82 of file llviewerstats.h.

Referenced by init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimLSLIPS

Definition at line 66 of file llviewerstats.h.

Referenced by init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimMainAgents

Definition at line 76 of file llviewerstats.h.

Referenced by init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimNetMsec

Definition at line 69 of file llviewerstats.h.

Referenced by LLFloaterLagMeter::determineServer(), init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimObjects

Definition at line 78 of file llviewerstats.h.

Referenced by init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimOutPPS

Definition at line 83 of file llviewerstats.h.

Referenced by init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimPendingDownloads

Definition at line 84 of file llviewerstats.h.

Referenced by init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimPendingLocalUploads

Definition at line 86 of file llviewerstats.h.

Referenced by process_sim_stats().

LLStat LLViewerStats::mSimPendingUploads

Definition at line 85 of file llviewerstats.h.

Referenced by init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimPhysicsFPS

Definition at line 64 of file llviewerstats.h.

Referenced by LLViewerWindow::handlePaint(), init_stat_view(), process_sim_stats(), and updateFrameStats().

LLStat LLViewerStats::mSimPingStat

Definition at line 96 of file llviewerstats.h.

Referenced by LLFloaterLagMeter::determineNetwork(), init_stat_view(), and update_statistics().

LLStat LLViewerStats::mSimScriptMsec

Definition at line 74 of file llviewerstats.h.

Referenced by LLFloaterLagMeter::determineServer(), init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimSimOtherMsec

Definition at line 70 of file llviewerstats.h.

Referenced by init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimSimPhysicsMsec

Definition at line 71 of file llviewerstats.h.

Referenced by LLFloaterLagMeter::determineServer(), init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimTimeDilation

Definition at line 61 of file llviewerstats.h.

Referenced by LLViewerWindow::handlePaint(), init_stat_view(), and process_sim_stats().

LLStat LLViewerStats::mSimTotalUnackedBytes

Definition at line 87 of file llviewerstats.h.

Referenced by init_stat_view(), and process_sim_stats().

F64 LLViewerStats::mStats[ST_COUNT] [private]

Definition at line 184 of file llviewerstats.h.

Referenced by addToMessage(), getStat(), incStat(), LLViewerStats(), and setStat().

LLStat LLViewerStats::mTextureKBitStat

Definition at line 44 of file llviewerstats.h.

Referenced by init_stat_view(), resetStats(), and update_statistics().

LLStat LLViewerStats::mTexturePacketsStat

Definition at line 56 of file llviewerstats.h.

Referenced by resetStats(), and update_statistics().

LLStat LLViewerStats::mUserserverPingStat

Definition at line 97 of file llviewerstats.h.

Referenced by update_statistics().

LLStat LLViewerStats::mVFSPendingOperations

Definition at line 45 of file llviewerstats.h.

Referenced by init_stat_view(), resetStats(), and update_statistics().


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