From 215f423cbe18fe9ca14a26caef918d303bad28ff Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:45:11 -0500 Subject: Second Life viewer sources 1.18.4.0-RC --- linden/indra/newview/llviewerstats.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'linden/indra/newview/llviewerstats.cpp') 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 @@ * @file llviewerstats.cpp * @brief LLViewerStats class implementation * + * $LicenseInfo:firstyear=2002&license=viewergpl$ + * * Copyright (c) 2002-2007, Linden Research, Inc. * * Second Life Viewer Source Code @@ -24,6 +26,7 @@ * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, * COMPLETENESS OR PERFORMANCE. + * $/LicenseInfo$ */ #include "llviewerprecompiledheaders.h" @@ -288,17 +291,18 @@ void LLViewerStats::updateFrameStats(const F64 time_diff) } -void LLViewerStats::addToMessage() const +void LLViewerStats::addToMessage(LLSD &body) const { + LLSD &misc = body["misc"]; + for (S32 i = 0; i < ST_COUNT; i++) { if (STAT_INFO[i].mEnabled) { // TODO: send timer value so dataserver can normalize - gMessageSystem->nextBlockFast(_PREHASH_MiscStats); - gMessageSystem->addU32Fast(_PREHASH_Type, (U32)i); - gMessageSystem->addF64Fast(_PREHASH_Value, mStats[i]); - llinfos << "STAT: " << STAT_INFO[i].mName << ": " << mStats[i] << llendl; + misc[STAT_INFO[i].mName] = mStats[i]; + llinfos << "STAT: " << STAT_INFO[i].mName << ": " << mStats[i] + << llendl; } } } -- cgit v1.1