LLFrameStats Class Reference

#include <llframestats.h>

Collaboration diagram for LLFrameStats:

Collaboration graph
[legend]
List of all members.

Public Types

 IDLE_NETWORK
 AGENT_MISC
 OBJECT_UPDATE
 CLEAN_DEAD
 UPDATE_EFFECTS
 IMAGE_UPDATE
 UPDATE_MOVE
 UPDATE_PARTICLES
 UPDATE_CULL
 UPDATE_GEOM
 AUDIO
 UPDATE_TEX_STATS
 STATE_SORT
 REBUILD
 RENDER_SYNC
 RENDER_GEOM
 RENDER_UI
 MISC_END
 NUM_STATS
enum  EStat {
  IDLE_NETWORK, AGENT_MISC, OBJECT_UPDATE, CLEAN_DEAD,
  UPDATE_EFFECTS, IMAGE_UPDATE, UPDATE_MOVE, UPDATE_PARTICLES,
  UPDATE_CULL, UPDATE_GEOM, AUDIO, UPDATE_TEX_STATS,
  STATE_SORT, REBUILD, RENDER_SYNC, RENDER_GEOM,
  RENDER_UI, MISC_END, NUM_STATS
}

Public Member Functions

 LLFrameStats ()
virtual ~LLFrameStats ()
void setFilename (const std::string &filename)
void setSummaryFilename (const std::string &filename)
void setTrackStats (const BOOL track_stats)
void start (const EStat stat_name)
void addFrameData ()
void dump ()
const char * getCurStatName () const
LLStatgetStat (const S32 i)
const char * getStatLabel (const S32 i) const
LLColor4 getStatColor (const S32 i) const

Static Public Member Functions

static void startLogging (void *)
static void stopLogging (void *)
static void timedLogging60 (void *)
static void timedLogging30 (void *)
static void timedLogging10 (void *)

Private Member Functions

void stop ()

Private Attributes

LLString mFilename
LLString mSummaryFilename
BOOL mTrackStats
LLTimer mTimer
BOOL mUseTimer
F32 mStopTime
EStat mCurrentStat
LLStat mStats [NUM_STATS]
LLDynamicArray< FrameDatamFrameData

Static Private Attributes

static char * sStatLabels [NUM_STATS]
static LLColor4 sStatColors [NUM_STATS]

Classes

class  FrameData

Detailed Description

Definition at line 42 of file llframestats.h.


Member Enumeration Documentation

enum LLFrameStats::EStat

Enumerator:
IDLE_NETWORK 
AGENT_MISC 
OBJECT_UPDATE 
CLEAN_DEAD 
UPDATE_EFFECTS 
IMAGE_UPDATE 
UPDATE_MOVE 
UPDATE_PARTICLES 
UPDATE_CULL 
UPDATE_GEOM 
AUDIO 
UPDATE_TEX_STATS 
STATE_SORT 
REBUILD 
RENDER_SYNC 
RENDER_GEOM 
RENDER_UI 
MISC_END 
NUM_STATS 

Definition at line 46 of file llframestats.h.


Constructor & Destructor Documentation

LLFrameStats::LLFrameStats (  ) 

Definition at line 86 of file llframestats.cpp.

References FALSE, mCurrentStat, mFilename, mStopTime, mTrackStats, mUseTimer, and NUM_STATS.

LLFrameStats::~LLFrameStats (  )  [virtual]

Definition at line 96 of file llframestats.cpp.

References mFrameData.


Member Function Documentation

void LLFrameStats::addFrameData (  ) 

Definition at line 120 of file llframestats.cpp.

References FALSE, LLStat::getCurrentDuration(), LLTimer::getElapsedTimeF32(), LLViewerObjectList::getNumObjects(), LLPipeline::getVisibleCount(), gFullObjectUpdates, gObjectList, gPipeline, gTerseObjectUpdates, i, llendl, llinfos, mCurrentStat, LLFrameStats::FrameData::mDuration, mFrameData, LLFrameStats::FrameData::mNumFullUpdates, LLFrameStats::FrameData::mNumObjects, LLFrameStats::FrameData::mNumTerseUpdates, LLFrameStats::FrameData::mNumTriangles, LLFrameStats::FrameData::mNumVisibleObjects, mStats, mStopTime, mTimer, LLFrameStats::FrameData::mTotalDuration, mTrackStats, LLPipeline::mTrianglesDrawn, mUseTimer, NUM_STATS, S32, and setTrackStats().

Referenced by idle().

void LLFrameStats::dump (  ) 

Definition at line 163 of file llframestats.cpp.

References LLFile::fopen(), gDirUtilp, LLDir::getExpandedFilename(), i, j, LL_MAX_PATH, LL_PATH_LOGS, llendl, llinfos, mFrameData, mSummaryFilename, NUM_STATS, S32, and sStatLabels.

Referenced by disconnect_viewer(), and setTrackStats().

const char * LLFrameStats::getCurStatName (  )  const

Definition at line 313 of file llframestats.cpp.

References getStatLabel(), and mCurrentStat.

LLStat& LLFrameStats::getStat ( const S32  i  )  [inline]

Definition at line 85 of file llframestats.h.

References mStats.

Referenced by LLFrameStatView::setup().

LLColor4 LLFrameStats::getStatColor ( const S32  i  )  const [inline]

Definition at line 87 of file llframestats.h.

References sStatColors.

Referenced by LLFrameStatView::setup().

const char* LLFrameStats::getStatLabel ( const S32  i  )  const [inline]

Definition at line 86 of file llframestats.h.

References sStatLabels.

Referenced by getCurStatName(), and LLFrameStatView::setup().

void LLFrameStats::setFilename ( const std::string &  filename  )  [inline]

Definition at line 72 of file llframestats.h.

References mFilename.

Referenced by idle_startup().

void LLFrameStats::setSummaryFilename ( const std::string &  filename  )  [inline]

Definition at line 73 of file llframestats.h.

References mSummaryFilename.

Referenced by idle_startup().

void LLFrameStats::setTrackStats ( const BOOL  track_stats  ) 

Definition at line 256 of file llframestats.cpp.

References dump(), llendl, llinfos, mFrameData, and mTrackStats.

Referenced by addFrameData(), saved_settings_to_globals(), startLogging(), stopLogging(), timedLogging10(), timedLogging30(), and timedLogging60().

void LLFrameStats::start ( const EStat  stat_name  ) 

Definition at line 101 of file llframestats.cpp.

References mCurrentStat, mStats, LLStat::start(), and stop().

Referenced by display(), idle(), and LLPipeline::renderGeom().

void LLFrameStats::startLogging ( void  )  [static]

Definition at line 279 of file llframestats.cpp.

References gFrameStats, setTrackStats(), and TRUE.

Referenced by init_client_menu(), and LLAgentPilot::updateTarget().

void LLFrameStats::stop (  )  [private]

Definition at line 108 of file llframestats.cpp.

References LLStat::addValue(), mCurrentStat, mStats, and NUM_STATS.

Referenced by start().

void LLFrameStats::stopLogging ( void  )  [static]

Definition at line 284 of file llframestats.cpp.

References FALSE, gFrameStats, and setTrackStats().

Referenced by init_client_menu(), and LLAgentPilot::updateTarget().

void LLFrameStats::timedLogging10 ( void  )  [static]

Definition at line 305 of file llframestats.cpp.

References gFrameStats, mStopTime, mTimer, mUseTimer, LLTimer::reset(), setTrackStats(), and TRUE.

Referenced by init_client_menu().

void LLFrameStats::timedLogging30 ( void  )  [static]

Definition at line 297 of file llframestats.cpp.

References gFrameStats, mStopTime, mTimer, mUseTimer, LLTimer::reset(), setTrackStats(), and TRUE.

Referenced by init_client_menu().

void LLFrameStats::timedLogging60 ( void  )  [static]

Definition at line 289 of file llframestats.cpp.

References gFrameStats, mStopTime, mTimer, mUseTimer, LLTimer::reset(), setTrackStats(), and TRUE.

Referenced by init_client_menu().


Member Data Documentation

EStat LLFrameStats::mCurrentStat [private]

Definition at line 119 of file llframestats.h.

Referenced by addFrameData(), getCurStatName(), LLFrameStats(), start(), and stop().

LLString LLFrameStats::mFilename [private]

Definition at line 111 of file llframestats.h.

Referenced by LLFrameStats(), and setFilename().

LLDynamicArray<FrameData> LLFrameStats::mFrameData [private]

Definition at line 124 of file llframestats.h.

Referenced by addFrameData(), dump(), setTrackStats(), and ~LLFrameStats().

LLStat LLFrameStats::mStats[NUM_STATS] [private]

Definition at line 121 of file llframestats.h.

Referenced by addFrameData(), getStat(), start(), and stop().

F32 LLFrameStats::mStopTime [private]

Definition at line 117 of file llframestats.h.

Referenced by addFrameData(), LLFrameStats(), timedLogging10(), timedLogging30(), and timedLogging60().

LLString LLFrameStats::mSummaryFilename [private]

Definition at line 112 of file llframestats.h.

Referenced by dump(), and setSummaryFilename().

LLTimer LLFrameStats::mTimer [private]

Definition at line 115 of file llframestats.h.

Referenced by addFrameData(), timedLogging10(), timedLogging30(), and timedLogging60().

BOOL LLFrameStats::mTrackStats [private]

Definition at line 114 of file llframestats.h.

Referenced by addFrameData(), LLFrameStats(), and setTrackStats().

BOOL LLFrameStats::mUseTimer [private]

Definition at line 116 of file llframestats.h.

Referenced by addFrameData(), LLFrameStats(), timedLogging10(), timedLogging30(), and timedLogging60().

LLColor4 LLFrameStats::sStatColors [static, private]

Initial value:

 {
                                                                                LLColor4(0.0f, 0.5f, 1.0f, 0.5f), 
                                                                                LLColor4(0.0f, 0.5f, 0.0f, 0.5f), 
                                                                                LLColor4(0.0f, 0.0f, 1.0f, 0.5f), 
                                                                                LLColor4(0.5f, 0.25f,0.5f, 0.5f), 
                                                                                LLColor4(0.5f, 0.5f, 0.5f, 0.5f), 
                                                                                LLColor4(0.5f, 1.0f, 0.0f, 0.5f), 
                                                                                LLColor4(1.0f, 1.0f, 0.0f, 0.5f), 
                                                                                LLColor4(0.0f, 0.0f, 1.0f, 0.5f), 
                                                                                LLColor4(1.0f, 0.0f, 0.0f, 0.5f), 
                                                                                LLColor4(0.5f, 0.0f, 0.0f, 0.5f), 
                                                                                LLColor4(0.0f, 0.5f, 0.5f, 0.5f), 
                                                                                LLColor4(0.5f, 1.0f, 1.0f, 0.5f), 
                                                                                LLColor4(0.0f, 0.0f, 0.5f, 0.5f), 
                                                                                LLColor4(1.0f, 0.0f, 1.0f, 0.5f), 
                                                                                LLColor4(0.0f, 0.5f, 1.0f, 0.5f), 
                                                                                LLColor4(1.0f, 1.0f, 1.0f, 0.5f), 
                                                                                LLColor4(0.5f, 0.5f, 0.5f, 0.5f), 
                                                                                LLColor4(1.0f, 0.0f, 0.0f, 0.5f) 
                                                                                }

Definition at line 123 of file llframestats.h.

Referenced by getStatColor().

char * LLFrameStats::sStatLabels [static, private]

Initial value:

 {
                                        "IdleNetwork",
                                        "AgentMisc",
                                        "ObjectUpdate",
                                        "CleanDead",
                                        "UpdateEffects",
                                        "ImageUpdate",
                                        "UpdateMove",
                                        "UpdateParticles",
                                        "UpdateCull",
                                        "UpdateGeom",
                                        "Audio",
                                        "UpdateTexStats",
                                        "StateSort",
                                        "Rebuild",
                                        "RenderSync",
                                        "RenderGeom",
                                        "RenderUI",
                                        "MiscEnd"
                                        }

Definition at line 122 of file llframestats.h.

Referenced by dump(), and getStatLabel().


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