summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerobjectlist.cpp
diff options
context:
space:
mode:
authorDon Kjer <don@lindenlab.com>2010-12-13 12:33:19 -0800
committerDon Kjer <don@lindenlab.com>2010-12-13 12:33:19 -0800
commitf4884faf3a020a718c611f34aa534e80d8a8b666 (patch)
tree63767dfd9db564b03d7e00c5d031139b4cbabf74 /indra/newview/llviewerobjectlist.cpp
parent03b68dad4bb6da4fa6ca7dcd05af91cfc96b4e31 (diff)
Expanded viewer stats recorder to include cache miss type, cache miss requests, and update failures
Diffstat (limited to 'indra/newview/llviewerobjectlist.cpp')
-rw-r--r--indra/newview/llviewerobjectlist.cpp26
1 files changed, 10 insertions, 16 deletions
diff --git a/indra/newview/llviewerobjectlist.cpp b/indra/newview/llviewerobjectlist.cpp
index 5a42f10c8f..249799bf55 100644
--- a/indra/newview/llviewerobjectlist.cpp
+++ b/indra/newview/llviewerobjectlist.cpp
@@ -350,8 +350,7 @@ void LLViewerObjectList::processObjectUpdate(LLMessageSystem *mesgsys,
LLDataPacker *cached_dpp = NULL;
#if LL_RECORD_VIEWER_STATS
- static LLViewerStatsRecorder stats_recorder;
- stats_recorder.initObjectUpdateEvents(regionp);
+ LLViewerStatsRecorder::instance()->beginObjectUpdateEvents(regionp);
#endif
for (i = 0; i < num_objects; i++)
@@ -368,7 +367,8 @@ void LLViewerObjectList::processObjectUpdate(LLMessageSystem *mesgsys,
mesgsys->getU32Fast(_PREHASH_ObjectData, _PREHASH_CRC, crc, i);
// Lookup data packer and add this id to cache miss lists if necessary.
- cached_dpp = regionp->getDP(id, crc);
+ U8 cache_miss_type = LLViewerRegion::CACHE_MISS_TYPE_NONE;
+ cached_dpp = regionp->getDP(id, crc, cache_miss_type);
if (cached_dpp)
{
// Cache Hit.
@@ -381,8 +381,7 @@ void LLViewerObjectList::processObjectUpdate(LLMessageSystem *mesgsys,
{
// Cache Miss.
#if LL_RECORD_VIEWER_STATS
- const BOOL success = TRUE;
- stats_recorder.recordObjectUpdateEvent(regionp, id, update_type, success, NULL);
+ LLViewerStatsRecorder::instance()->recordCacheMissEvent(id, update_type, cache_miss_type);
#endif
continue; // no data packer, skip this object
@@ -503,8 +502,7 @@ void LLViewerObjectList::processObjectUpdate(LLMessageSystem *mesgsys,
{
// llinfos << "terse update for an unknown object:" << fullid << llendl;
#if LL_RECORD_VIEWER_STATS
- const BOOL success = FALSE;
- stats_recorder.recordObjectUpdateEvent(regionp, local_id, update_type, success, NULL);
+ LLViewerStatsRecorder::instance()->recordObjectUpdateFailure(local_id, update_type);
#endif
continue;
}
@@ -518,8 +516,7 @@ void LLViewerObjectList::processObjectUpdate(LLMessageSystem *mesgsys,
{
// llinfos << "terse update for an unknown object:" << fullid << llendl;
#if LL_RECORD_VIEWER_STATS
- const BOOL success = FALSE;
- stats_recorder.recordObjectUpdateEvent(regionp, local_id, update_type, success, NULL);
+ LLViewerStatsRecorder::instance()->recordObjectUpdateFailure(local_id, update_type);
#endif
continue;
}
@@ -532,8 +529,7 @@ void LLViewerObjectList::processObjectUpdate(LLMessageSystem *mesgsys,
mNumDeadObjectUpdates++;
// llinfos << "update for a dead object:" << fullid << llendl;
#if LL_RECORD_VIEWER_STATS
- const BOOL success = FALSE;
- stats_recorder.recordObjectUpdateEvent(regionp, local_id, update_type, success, NULL);
+ LLViewerStatsRecorder::instance()->recordObjectUpdateFailure(local_id, update_type);
#endif
continue;
}
@@ -543,8 +539,7 @@ void LLViewerObjectList::processObjectUpdate(LLMessageSystem *mesgsys,
if (!objectp)
{
#if LL_RECORD_VIEWER_STATS
- const BOOL success = FALSE;
- stats_recorder.recordObjectUpdateEvent(regionp, local_id, update_type, success, NULL);
+ LLViewerStatsRecorder::instance()->recordObjectUpdateFailure(local_id, update_type);
#endif
continue;
}
@@ -584,13 +579,12 @@ void LLViewerObjectList::processObjectUpdate(LLMessageSystem *mesgsys,
processUpdateCore(objectp, user_data, i, update_type, NULL, justCreated);
}
#if LL_RECORD_VIEWER_STATS
- const BOOL success = TRUE;
- stats_recorder.recordObjectUpdateEvent(regionp, local_id, update_type, success, objectp);
+ LLViewerStatsRecorder::instance()->recordObjectUpdateEvent(local_id, update_type, objectp);
#endif
}
#if LL_RECORD_VIEWER_STATS
- stats_recorder.closeObjectUpdateEvents(regionp);
+ LLViewerStatsRecorder::instance()->endObjectUpdateEvents();
#endif
LLVOAvatar::cullAvatarsByPixelArea();