summaryrefslogtreecommitdiff
path: root/indra/newview/llworld.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2013-10-15 10:19:52 -0700
committerRichard Linden <none@none>2013-10-15 10:19:52 -0700
commit45f93f5fbbd30cef52e61f6681e8af4795e64260 (patch)
tree66105a633ca54db07997aee8239d2a4cf6349134 /indra/newview/llworld.cpp
parent1acceb3633c0f0c4fdf29b17d77d67c8a9b71986 (diff)
add cached object count stat
Diffstat (limited to 'indra/newview/llworld.cpp')
-rwxr-xr-xindra/newview/llworld.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llworld.cpp b/indra/newview/llworld.cpp
index f283cdb4b8..e4e0a745ce 100755
--- a/indra/newview/llworld.cpp
+++ b/indra/newview/llworld.cpp
@@ -661,6 +661,8 @@ void LLWorld::updateVisibilities()
LLViewerCamera::getInstance()->setFar(cur_far_clip);
}
+static LLTrace::SampleStatHandle<> sNumActiveCachedObjects("numactivecachedobjects", "Number of objects loaded from cache");
+
void LLWorld::updateRegions(F32 max_update_time)
{
if(LLViewerCamera::getInstance()->isChanged())
@@ -682,6 +684,7 @@ void LLWorld::updateRegions(F32 max_update_time)
{
mNumOfActiveCachedObjects += (*iter)->getNumOfActiveCachedObjects();
}
+ sample(sNumActiveCachedObjects, mNumOfActiveCachedObjects);
}
void LLWorld::clearAllVisibleObjects()