LLViewerStats Class Reference

#include <llviewerstats.h>

Inheritance diagram for LLViewerStats:

Inheritance graph
[legend]
Collaboration diagram for LLViewerStats:

Collaboration graph
[legend]

List of all members.

Public Types

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 mSimSimPhysicsStepMsec
LLStat mSimSimPhysicsShapeUpdateMsec
LLStat mSimSimPhysicsOtherMsec
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 mPhysicsPinnedTasks
LLStat mPhysicsLODTasks
LLStat mPhysicsMemoryAllocated
LLStat mSimPingStat

Private Attributes

F64 mStats [ST_COUNT]
F64 mLastTimeDiff


Detailed Description

Definition at line 37 of file llviewerstats.h.


Member Enumeration Documentation

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 110 of file llviewerstats.h.


Constructor & Destructor Documentation

LLViewerStats::LLViewerStats (  ) 

Definition at line 205 of file llviewerstats.cpp.

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

Here is the call graph for this function:

LLViewerStats::~LLViewerStats (  ) 

Definition at line 220 of file llviewerstats.cpp.


Member Function Documentation

void LLViewerStats::resetStats (  ) 

Definition at line 224 of file llviewerstats.cpp.

References LLSingleton< LLViewerStats >::getInstance(), mAssetKBitStat, mFPSStat, mKBitStat, mLayersKBitStat, mObjectKBitStat, mPacketsInStat, mPacketsLostStat, mPacketsOutStat, mTextureKBitStat, mTexturePacketsStat, mVFSPendingOperations, and LLStat::reset().

Referenced by idle_startup().

Here is the call graph for this function:

Here is the caller graph for this function:

F64 LLViewerStats::getStat ( EStatType  type  )  const

Definition at line 240 of file llviewerstats.cpp.

References mStats.

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

Here is the caller graph for this function:

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

Definition at line 245 of file llviewerstats.cpp.

References mStats.

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

Here is the caller graph for this function:

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

void LLViewerStats::updateFrameStats ( const F64  time_diff  ) 

void LLViewerStats::addToMessage ( LLSD body  )  const

Definition at line 317 of file llviewerstats.cpp.

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

Referenced by send_stats().

Here is the caller graph for this function:

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

Definition at line 334 of file llviewerstats.cpp.

References StatAttributes::mName, and ST_COUNT.


Member Data Documentation

Definition at line 40 of file llviewerstats.h.

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

Definition at line 41 of file llviewerstats.h.

Referenced by resetStats(), and update_statistics().

Definition at line 42 of file llviewerstats.h.

Referenced by resetStats(), and update_statistics().

Definition at line 43 of file llviewerstats.h.

Referenced by resetStats(), and update_statistics().

Definition at line 44 of file llviewerstats.h.

Referenced by resetStats(), and update_statistics().

Definition at line 45 of file llviewerstats.h.

Referenced by resetStats(), and update_statistics().

Definition at line 46 of file llviewerstats.h.

Definition at line 47 of file llviewerstats.h.

Definition at line 48 of file llviewerstats.h.

Definition at line 49 of file llviewerstats.h.

Definition at line 50 of file llviewerstats.h.

Definition at line 52 of file llviewerstats.h.

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

Definition at line 54 of file llviewerstats.h.

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

Definition at line 56 of file llviewerstats.h.

Referenced by resetStats(), and update_statistics().

Definition at line 57 of file llviewerstats.h.

Referenced by LLWorld::updateNetStats().

Definition at line 58 of file llviewerstats.h.

Referenced by LLWorld::updateNetStats().

Definition at line 61 of file llviewerstats.h.

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

Definition at line 63 of file llviewerstats.h.

Referenced by process_sim_stats(), and updateFrameStats().

Definition at line 65 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 66 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 68 of file llviewerstats.h.

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

Definition at line 69 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 70 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 71 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 73 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 74 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 75 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 77 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 78 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 79 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 81 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 82 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 83 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 84 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 85 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 87 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 88 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 89 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 90 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 91 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 92 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 94 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 95 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 96 of file llviewerstats.h.

Referenced by process_sim_stats().

Definition at line 104 of file llviewerstats.h.

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

F64 LLViewerStats::mStats[ST_COUNT] [private]

Definition at line 191 of file llviewerstats.h.

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

Definition at line 193 of file llviewerstats.h.

Referenced by updateFrameStats().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:33:46 2008 for SecondLife by  doxygen 1.5.5