#include "llstat.h"
Go to the source code of this file.
Classes | |
class | LLViewerStats |
Functions | |
void | reset_statistics () |
void | output_statistics (void *) |
void | update_statistics (U32 frame_count) |
void | send_stats () |
Variables | |
static const F32 | SEND_STATS_PERIOD = 300.0f |
std::map< S32, LLFrameTimer > | gDebugTimers |
Copyright (c) 2002-2008, Linden Research, Inc.
Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.
ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$
Definition in file llviewerstats.h.
void output_statistics | ( | void * | ) |
Definition at line 360 of file llviewerstats.cpp.
References LLVOAvatar::dumpBakedStatus(), LLTexStaticImageList::dumpByteCount(), LLTexLayerParamAlpha::dumpCacheByteCount(), LLVOAvatar::dumpScratchTextureByteCount(), LLTexLayerSetBuffer::dumpTotalByteCount(), LLVOAvatar::dumpTotalLocalTextureByteCount(), LLPipeline::getLightCount(), LLViewerImageList::getNumImages(), LLViewerObjectList::getNumObjects(), LLViewerObject::getNumZombieObjects(), LLViewerObjectList::getObject(), LLViewerObjectList::getOrphanCount(), LLPrimitive::getPCode(), gImageList, gObjectList, gPipeline, gTexStaticImageList, i, llendl, llinfos, llwarns, LLViewerObjectList::mNumDeadObjects, NULL, LLPrimitive::pCodeToString(), S32, LLImageGL::sBoundTextureMemory, LLImageFormatted::sGlobalFormattedMemory, LLImageRaw::sGlobalRawMemory, and LLImageGL::sGlobalTextureMemory.
Referenced by init_debug_ui_menu().
void reset_statistics | ( | ) |
Definition at line 348 of file llviewerstats.cpp.
References LLStat::addValue(), gPipeline, LLPipeline::resetFrameStats(), LLSurface::sTexelsUpdated, LLSurface::sTexelsUpdatedPerSecStat, and LLSurface::sTextureUpdateTime.
Referenced by LLAppViewer::idle().
void send_stats | ( | ) |
Definition at line 634 of file llviewerstats.cpp.
References LLViewerStats::addToMessage(), gAgent, gAgentSessionID, gAvgSimPing, gCurrentVersion, LLViewerRegion::getCapability(), LLCPUInfo::getCPUString(), getCurrentRSS(), LLAgent::getDistanceTraveled(), LLFrameTimer::getElapsedSeconds(), LLTimer::getElapsedTimeF32(), LLFrameTimer::getElapsedTimeF32(), LLFeatureManager::getGPUClass(), LLFeatureManager::getGPUString(), LLSingleton< LLViewerStats >::getInstance(), LLSingleton< LLFeatureManager >::getInstance(), LLAppViewer::getOSInfo(), LLOSInfo::getOSStringSimple(), LLMemoryInfo::getPhysicalMemoryKB(), LLAgent::getRegion(), LLAgent::getRegionsVisited(), LLControlGroup::getString(), LLViewerWindow::getWindowDisplayHeight(), LLViewerWindow::getWindowDisplayWidth(), gForegroundFrameCount, gForegroundTime, gFrameCount, gGLManager, gMessageSystem, gNoRender, gRenderStartTime, gSavedSettings, gSimFrames, gSimLastTime, gSysCPU, gSysMemory, gTotalObjectBytes, gTotalTextureBytes, gTotalWorldBytes, gViewerWindow, LLAppViewer::instance(), llendl, llformat(), llwarns, LLMessageSystem::mCompressedBytesIn, LLMessageSystem::mCompressedBytesOut, LLMessageSystem::mCompressedPacketsIn, LLMessageSystem::mCompressedPacketsOut, LLGLManager::mDriverVersionVendorString, LLMessageSystem::mDroppedPackets, LLMessageSystem::mFailedResendPackets, LLGLManager::mGLVendorShort, LLMessageSystem::mInvalidOnCircuitPackets, LLMessageSystem::mOffCircuitPackets, LLMessageSystem::mPacketsIn, LLMessageSystem::mPacketsOut, LLMessageSystem::mResentPackets, LLMessageSystem::mSendPacketFailureCount, LLMessageSystem::mTotalBytesIn, LLMessageSystem::mTotalBytesOut, LLMessageSystem::mUncompressedBytesIn, LLMessageSystem::mUncompressedBytesOut, LLHTTPClient::post(), S32, SEND_STATS_PERIOD, LLFloaterDirectory::sNewSearchCount, LLVOAvatar::sNumVisibleAvatars, and LLFloaterDirectory::sOldSearchCount.
Referenced by LLAppViewer::idle(), and LLAppViewer::requestQuit().
void update_statistics | ( | U32 | frame_count | ) |
Definition at line 503 of file llviewerstats.cpp.
References LLStat::addValue(), CAMERA_MODE_CUSTOMIZE_AVATAR, CAMERA_MODE_MOUSELOOK, LLLCD::Enabled(), LLCircuit::findCircuit(), LLFastTimer::FTM_FRAME, LLFastTimer::FTM_IDLE, LLFastTimer::FTM_IMAGE_UPDATE, LLFastTimer::FTM_NETWORK, LLFastTimer::FTM_RENDER_GEOMETRY, LLFastTimer::FTM_STATESORT, gAgent, gAvgSimPing, gDebugTimers, gDebugView, LLControlGroup::getBOOL(), LLAgent::getCameraMode(), LLVLManager::getCloudBits(), LLControlGroup::getF32(), LLViewerRegion::getHost(), LLSingleton< LLWorld >::getInstance(), LLSingleton< LLViewerStats >::getInstance(), LLVLManager::getLandBits(), LLCircuitData::getPingDelay(), LLAgent::getRegion(), LLControlGroup::getS32(), LLFastTimerView::getTime(), LLVLManager::getTotalBytes(), LLTransferManager::getTransferBitsIn(), LLVFile::getVFSThread(), LLView::getVisible(), LLVLManager::getWindBits(), gFloaterTools, gFrameIntervalSeconds, gLcdScreen, gMessageSystem, gObjectBits, gSavedSettings, gSimPingCount, gTotalObjectBytes, gTotalTextureBytes, gTotalWorldBytes, gTransferManager, gVLManager, LLViewerStats::incStat(), LLTCT_ASSET, LLViewerStats::mAssetKBitStat, LLMessageSystem::mCircuitInfo, LLDebugView::mFastTimerView, LLViewerStats::mFPSStat, LLViewerStats::mLayersKBitStat, LLViewerStats::mObjectKBitStat, LLViewerStats::mSimPingStat, LLViewerStats::mTextureKBitStat, LLViewerStats::mTexturePacketsStat, LLViewerStats::mVFSPendingOperations, LLWorld::requestCacheMisses(), LLVLManager::resetBitCounts(), LLTransferManager::resetTransferBitsIn(), S32, LLViewerStats::setStat(), LLVOAvatar::sNumVisibleAvatars, LLViewerStats::ST_AVATAR_EDIT_SECONDS, LLViewerStats::ST_CHAT_BUBBLES, LLViewerStats::ST_DRAW_DIST, LLViewerStats::ST_ENABLE_VBO, LLViewerStats::ST_FRAME_SECS, LLViewerStats::ST_IMAGE_SECS, LLViewerStats::ST_LIGHTING_DETAIL, LLViewerStats::ST_LOGITECH_LCD, LLViewerStats::ST_MOUSELOOK_SECONDS, LLViewerStats::ST_NETWORK_SECS, LLViewerStats::ST_REBUILD_SECS, LLViewerStats::ST_RENDER_SECS, LLViewerStats::ST_SHADER_AVATAR, LLViewerStats::ST_SHADER_ENVIRONMENT, LLViewerStats::ST_SHADER_OBJECTS, LLViewerStats::ST_TOOLBOX_SECONDS, LLViewerStats::ST_UPDATE_SECS, LLViewerStats::ST_VISIBLE_AVATARS, LLViewerImageList::sTextureBits, LLViewerImageList::sTexturePackets, and LLWorld::updateNetStats().
Referenced by LLAppViewer::idle().
std::map<S32,LLFrameTimer> gDebugTimers |
Definition at line 501 of file llviewerstats.cpp.
Referenced by LLDebugText::update(), and update_statistics().
const F32 SEND_STATS_PERIOD = 300.0f [static] |
Definition at line 196 of file llviewerstats.h.
Referenced by LLAppViewer::idle(), and send_stats().