diff options
author | Dessie Linden <dessie@lindenlab.com> | 2010-07-14 06:39:14 -0700 |
---|---|---|
committer | Dessie Linden <dessie@lindenlab.com> | 2010-07-14 06:39:14 -0700 |
commit | b46fff1ba1450d14424e676f31c0cacd921bedb0 (patch) | |
tree | 7e38cb35375b235deaf1f0ea5374e6c1bcd10f7f /indra/newview/llviewerstats.cpp | |
parent | c201038aba861b1166d367fcf5986e33644ec018 (diff) | |
parent | 4339600d43601f07d01c676cce5da17c2758c4cb (diff) |
Merged from viewer-release
Diffstat (limited to 'indra/newview/llviewerstats.cpp')
-rw-r--r-- | indra/newview/llviewerstats.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llviewerstats.cpp b/indra/newview/llviewerstats.cpp index 6ada122662..930c608e35 100644 --- a/indra/newview/llviewerstats.cpp +++ b/indra/newview/llviewerstats.cpp @@ -280,6 +280,8 @@ LLViewerStats::LLViewerStats() : { mStats[ST_HAS_BAD_TIMER] = 1.0; } + + mAgentPositionSnaps.reset(); } LLViewerStats::~LLViewerStats() @@ -299,6 +301,8 @@ void LLViewerStats::resetStats() LLViewerStats::getInstance()->mPacketsOutStat.reset(); LLViewerStats::getInstance()->mFPSStat.reset(); LLViewerStats::getInstance()->mTexturePacketsStat.reset(); + + LLViewerStats::getInstance()->mAgentPositionSnaps.reset(); } @@ -393,6 +397,10 @@ void LLViewerStats::addToMessage(LLSD &body) const << llendl; } } + + body["AgentPositionSnaps"] = mAgentPositionSnaps.getData(); + llinfos << "STAT: AgentPositionSnaps: Mean = " << mAgentPositionSnaps.getMean() << "; StdDev = " << mAgentPositionSnaps.getStdDev() + << "; Count = " << mAgentPositionSnaps.getCount() << llendl; } // static |