diff options
author | Jacek Antonelli | 2008-08-15 23:45:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:57 -0500 |
commit | 7e3007b63521c4b0c5bbad1c3964a557fc526ce2 (patch) | |
tree | ab231ed574db618873d6ebb25293cf7c0cb6d26e /linden/indra/newview/llmemoryview.cpp | |
parent | Second Life viewer sources 1.20.10 (diff) | |
download | meta-impy-7e3007b63521c4b0c5bbad1c3964a557fc526ce2.zip meta-impy-7e3007b63521c4b0c5bbad1c3964a557fc526ce2.tar.gz meta-impy-7e3007b63521c4b0c5bbad1c3964a557fc526ce2.tar.bz2 meta-impy-7e3007b63521c4b0c5bbad1c3964a557fc526ce2.tar.xz |
Second Life viewer sources 1.20.11
Diffstat (limited to 'linden/indra/newview/llmemoryview.cpp')
-rw-r--r-- | linden/indra/newview/llmemoryview.cpp | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/linden/indra/newview/llmemoryview.cpp b/linden/indra/newview/llmemoryview.cpp index ca38a9c..32f5431 100644 --- a/linden/indra/newview/llmemoryview.cpp +++ b/linden/indra/newview/llmemoryview.cpp | |||
@@ -41,6 +41,7 @@ | |||
41 | #include "llfontgl.h" | 41 | #include "llfontgl.h" |
42 | #include "llmemtype.h" | 42 | #include "llmemtype.h" |
43 | 43 | ||
44 | #include "llcharacter.h" | ||
44 | #include "llui.h" | 45 | #include "llui.h" |
45 | #include "llviewercontrol.h" | 46 | #include "llviewercontrol.h" |
46 | #include "llstat.h" | 47 | #include "llstat.h" |
@@ -120,6 +121,7 @@ static const struct mtv_display_info mtv_display_table[] = | |||
120 | { LLMemType::MTYPE_SPACE_PARTITION, "Space Partition", &LLColor4::blue2 }, | 121 | { LLMemType::MTYPE_SPACE_PARTITION, "Space Partition", &LLColor4::blue2 }, |
121 | { LLMemType::MTYPE_VERTEX_DATA, "Vertex Buffer", &LLColor4::blue3 }, | 122 | { LLMemType::MTYPE_VERTEX_DATA, "Vertex Buffer", &LLColor4::blue3 }, |
122 | { LLMemType::MTYPE_AVATAR, "Avatar", &LLColor4::purple1 }, | 123 | { LLMemType::MTYPE_AVATAR, "Avatar", &LLColor4::purple1 }, |
124 | { LLMemType::MTYPE_ANIMATION, "Animation", &LLColor4::purple3 }, | ||
123 | { LLMemType::MTYPE_REGIONS, "Regions", &LLColor4::blue1 }, | 125 | { LLMemType::MTYPE_REGIONS, "Regions", &LLColor4::blue1 }, |
124 | { LLMemType::MTYPE_VOLUME, "Volume", &LLColor4::pink1 }, | 126 | { LLMemType::MTYPE_VOLUME, "Volume", &LLColor4::pink1 }, |
125 | { LLMemType::MTYPE_PRIMITIVE, "Profile", &LLColor4::pink2 }, | 127 | { LLMemType::MTYPE_PRIMITIVE, "Profile", &LLColor4::pink2 }, |
@@ -208,10 +210,25 @@ void LLMemoryView::draw() | |||
208 | if (textw > labelwidth) | 210 | if (textw > labelwidth) |
209 | labelwidth = textw; | 211 | labelwidth = textw; |
210 | } | 212 | } |
213 | |||
214 | S32 num_avatars = 0; | ||
215 | S32 num_motions = 0; | ||
216 | S32 num_loading_motions = 0; | ||
217 | S32 num_loaded_motions = 0; | ||
218 | S32 num_active_motions = 0; | ||
219 | S32 num_deprecated_motions = 0; | ||
220 | for (std::vector<LLCharacter*>::iterator iter = LLCharacter::sInstances.begin(); | ||
221 | iter != LLCharacter::sInstances.end(); ++iter) | ||
222 | { | ||
223 | num_avatars++; | ||
224 | (*iter)->getMotionController().incMotionCounts(num_motions, num_loading_motions, num_loaded_motions, num_active_motions, num_deprecated_motions); | ||
225 | } | ||
226 | |||
211 | x = xleft; | 227 | x = xleft; |
212 | tdesc = llformat("Total Bytes: %d MB Overhead: %d KB", | 228 | tdesc = llformat("Total Bytes: %d MB Overhead: %d KB Avs %d Motions:%d Loading:%d Loaded:%d Active:%d Dep:%d", |
213 | LLMemType::sTotalMem >> 20, LLMemType::sOverheadMem >> 10); | 229 | LLMemType::sTotalMem >> 20, LLMemType::sOverheadMem >> 10, |
214 | LLFontGL::sMonospace->renderUTF8(tdesc, 0, x, y, LLColor4::white, LLFontGL::LEFT, LLFontGL::TOP); | 230 | num_avatars, num_motions, num_loading_motions, num_loaded_motions, num_active_motions, num_deprecated_motions); |
231 | LLFontGL::sMonospace->renderUTF8(tdesc, 0, x, y, LLColor4::white, LLFontGL::LEFT, LLFontGL::TOP); | ||
215 | } | 232 | } |
216 | 233 | ||
217 | // Bars | 234 | // Bars |