LLFrameStats Class Reference

#include <llframestats.h>

Collaboration diagram for LLFrameStats:

Collaboration graph
[legend]

List of all members.

Public Types

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

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::setFilename ( const std::string &  filename  )  [inline]

Definition at line 72 of file llframestats.h.

References mFilename.

Referenced by idle_startup().

Here is the caller graph for this function:

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

Definition at line 73 of file llframestats.h.

References mSummaryFilename.

Referenced by idle_startup().

Here is the caller graph for this function:

void LLFrameStats::setTrackStats ( const BOOL  track_stats  ) 

Definition at line 252 of file llframestats.cpp.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

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(), LLAppViewer::idle(), and LLPipeline::renderGeom().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFrameStats::addFrameData (  ) 

void LLFrameStats::dump (  ) 

Definition at line 162 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 LLAppViewer::disconnectViewer(), and setTrackStats().

Here is the call graph for this function:

Here is the caller graph for this function:

const char * LLFrameStats::getCurStatName (  )  const

Definition at line 309 of file llframestats.cpp.

References getStatLabel(), and mCurrentStat.

Here is the call graph for this function:

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

Definition at line 85 of file llframestats.h.

References mStats.

Referenced by LLFrameStatView::setup().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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

Definition at line 87 of file llframestats.h.

References sStatColors.

Referenced by LLFrameStatView::setup().

Here is the caller graph for this function:

void LLFrameStats::startLogging ( void *   )  [static]

Definition at line 275 of file llframestats.cpp.

References setTrackStats(), and TRUE.

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFrameStats::stopLogging ( void *   )  [static]

Definition at line 280 of file llframestats.cpp.

References FALSE, and setTrackStats().

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

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFrameStats::timedLogging60 ( void *   )  [static]

Definition at line 285 of file llframestats.cpp.

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

Referenced by init_client_menu().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFrameStats::timedLogging30 ( void *   )  [static]

Definition at line 293 of file llframestats.cpp.

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

Referenced by init_client_menu().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFrameStats::timedLogging10 ( void *   )  [static]

Definition at line 301 of file llframestats.cpp.

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

Referenced by init_client_menu().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLFrameStats::stop (  )  [private]

Definition at line 108 of file llframestats.cpp.

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

Referenced by start().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 110 of file llframestats.h.

Referenced by LLFrameStats(), and setFilename().

Definition at line 111 of file llframestats.h.

Referenced by dump(), and setSummaryFilename().

Definition at line 113 of file llframestats.h.

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

Definition at line 114 of file llframestats.h.

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

Definition at line 118 of file llframestats.h.

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

LLStat LLFrameStats::mStats[NUM_STATS] [private]

Definition at line 120 of file llframestats.h.

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

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 121 of file llframestats.h.

Referenced by dump(), and getStatLabel().

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 122 of file llframestats.h.

Referenced by getStatColor().

Definition at line 123 of file llframestats.h.

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


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

Generated on Fri May 16 08:48:03 2008 for SecondLife by  doxygen 1.5.5