diff options
author | Richard Linden <none@none> | 2013-10-15 10:19:52 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-10-15 10:19:52 -0700 |
commit | 45f93f5fbbd30cef52e61f6681e8af4795e64260 (patch) | |
tree | 66105a633ca54db07997aee8239d2a4cf6349134 /indra/newview/llworld.cpp | |
parent | 1acceb3633c0f0c4fdf29b17d77d67c8a9b71986 (diff) |
add cached object count stat
Diffstat (limited to 'indra/newview/llworld.cpp')
-rwxr-xr-x | indra/newview/llworld.cpp | 3 |
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() |