summaryrefslogtreecommitdiff
path: root/indra
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
parent1acceb3633c0f0c4fdf29b17d77d67c8a9b71986 (diff)
add cached object count stat
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llworld.cpp3
-rwxr-xr-xindra/newview/skins/default/xui/en/floater_stats.xml5
2 files changed, 7 insertions, 1 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()
diff --git a/indra/newview/skins/default/xui/en/floater_stats.xml b/indra/newview/skins/default/xui/en/floater_stats.xml
index 6c776907f5..bee570d5d0 100755
--- a/indra/newview/skins/default/xui/en/floater_stats.xml
+++ b/indra/newview/skins/default/xui/en/floater_stats.xml
@@ -62,7 +62,10 @@
<stat_bar name="objs"
label="Total Objects"
stat="numobjectsstat"/>
- <stat_bar name="newobjs"
+ <stat_bar name="objs"
+ label="Cached Objects"
+ stat="numactivecachedobjects"/>
+ <stat_bar name="newobjs"
label="New Objects"
stat="numnewobjectsstat"/>
<stat_bar name="object_cache_hits"