aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerstats.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:11 -0500
committerJacek Antonelli2008-08-15 23:45:11 -0500
commit215f423cbe18fe9ca14a26caef918d303bad28ff (patch)
tree0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/newview/llviewerstats.cpp
parentSecond Life viewer sources 1.18.3.5-RC (diff)
downloadmeta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2
meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to 'linden/indra/newview/llviewerstats.cpp')
-rw-r--r--linden/indra/newview/llviewerstats.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/linden/indra/newview/llviewerstats.cpp b/linden/indra/newview/llviewerstats.cpp
index 4ad1155..da75de6 100644
--- a/linden/indra/newview/llviewerstats.cpp
+++ b/linden/indra/newview/llviewerstats.cpp
@@ -2,6 +2,8 @@
2 * @file llviewerstats.cpp 2 * @file llviewerstats.cpp
3 * @brief LLViewerStats class implementation 3 * @brief LLViewerStats class implementation
4 * 4 *
5 * $LicenseInfo:firstyear=2002&license=viewergpl$
6 *
5 * Copyright (c) 2002-2007, Linden Research, Inc. 7 * Copyright (c) 2002-2007, Linden Research, Inc.
6 * 8 *
7 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
@@ -24,6 +26,7 @@
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE. 28 * COMPLETENESS OR PERFORMANCE.
29 * $/LicenseInfo$
27 */ 30 */
28 31
29#include "llviewerprecompiledheaders.h" 32#include "llviewerprecompiledheaders.h"
@@ -288,17 +291,18 @@ void LLViewerStats::updateFrameStats(const F64 time_diff)
288 291
289} 292}
290 293
291void LLViewerStats::addToMessage() const 294void LLViewerStats::addToMessage(LLSD &body) const
292{ 295{
296 LLSD &misc = body["misc"];
297
293 for (S32 i = 0; i < ST_COUNT; i++) 298 for (S32 i = 0; i < ST_COUNT; i++)
294 { 299 {
295 if (STAT_INFO[i].mEnabled) 300 if (STAT_INFO[i].mEnabled)
296 { 301 {
297 // TODO: send timer value so dataserver can normalize 302 // TODO: send timer value so dataserver can normalize
298 gMessageSystem->nextBlockFast(_PREHASH_MiscStats); 303 misc[STAT_INFO[i].mName] = mStats[i];
299 gMessageSystem->addU32Fast(_PREHASH_Type, (U32)i); 304 llinfos << "STAT: " << STAT_INFO[i].mName << ": " << mStats[i]
300 gMessageSystem->addF64Fast(_PREHASH_Value, mStats[i]); 305 << llendl;
301 llinfos << "STAT: " << STAT_INFO[i].mName << ": " << mStats[i] << llendl;
302 } 306 }
303 } 307 }
304} 308}