diff options
author | Oz Linden <oz@lindenlab.com> | 2012-05-22 06:03:42 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-05-22 06:03:42 -0400 |
commit | 7637acf76e6a1170508e8bddd381c426d219b1ee (patch) | |
tree | c48b5ea58fda587a103278860b943122f6ce8fae /indra/newview/llviewerobjectlist.cpp | |
parent | 6525fc4a4fc09e02c4fa709e0cbba4aa8d7d25ae (diff) | |
parent | c4dfdcb338aaeeb4e3adc4e1aef4f5b190ef5c57 (diff) |
merge changes for DRTVWR-149
Diffstat (limited to 'indra/newview/llviewerobjectlist.cpp')
-rw-r--r-- | indra/newview/llviewerobjectlist.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llviewerobjectlist.cpp b/indra/newview/llviewerobjectlist.cpp index 6912faa9ec..54ccfb9aae 100644 --- a/indra/newview/llviewerobjectlist.cpp +++ b/indra/newview/llviewerobjectlist.cpp @@ -91,8 +91,9 @@ extern LLPipeline gPipeline; // Statics for object lookup tables. U32 LLViewerObjectList::sSimulatorMachineIndex = 1; // Not zero deliberately, to speed up index check. -std::map<U64, U32> LLViewerObjectList::sIPAndPortToIndex; +std::map<U64, U32> LLViewerObjectList::sIPAndPortToIndex; std::map<U64, LLUUID> LLViewerObjectList::sIndexAndLocalIDToUUID; +LLStat LLViewerObjectList::sCacheHitRate("object_cache_hits", 128); LLViewerObjectList::LLViewerObjectList() { @@ -542,6 +543,8 @@ void LLViewerObjectList::processObjectUpdate(LLMessageSystem *mesgsys, } justCreated = TRUE; mNumNewObjects++; + sCacheHitRate.addValue(cached ? 100.f : 0.f); + } |