diff options
Diffstat (limited to 'indra/newview/llviewerstats.h')
-rw-r--r--[-rwxr-xr-x] | indra/newview/llviewerstats.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/newview/llviewerstats.h b/indra/newview/llviewerstats.h index e74fb36e97..6b2461be41 100755..100644 --- a/indra/newview/llviewerstats.h +++ b/indra/newview/llviewerstats.h @@ -279,24 +279,29 @@ public: // Phase tracking (originally put in for avatar rezzing), tracking // progress of active/completed phases for activities like outfit changing. - typedef std::map<std::string,LLTimer> phase_map_t; + typedef std::map<std::string,LLFrameTimer> phase_map_t; typedef std::map<std::string,StatsAccumulator> phase_stats_t; class PhaseMap { private: phase_map_t mPhaseMap; + static phase_stats_t sStats; public: PhaseMap(); - LLTimer& getPhaseTimer(const std::string& phase_name); + LLFrameTimer& getPhaseTimer(const std::string& phase_name); bool getPhaseValues(const std::string& phase_name, F32& elapsed, bool& completed); void startPhase(const std::string& phase_name); void stopPhase(const std::string& phase_name); + void stopAllPhases(); void clearPhases(); LLSD dumpPhases(); + static StatsAccumulator& getPhaseStats(const std::string& phase_name); + static void recordPhaseStat(const std::string& phase_name, F32 value); phase_map_t::iterator begin() { return mPhaseMap.begin(); } phase_map_t::iterator end() { return mPhaseMap.end(); } }; + private: F64 mStats[ST_COUNT]; |