diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2011-01-26 11:13:04 -0700 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2011-01-26 11:13:04 -0700 |
commit | 8f54dc2958e75587165623b0292940200fb49f59 (patch) | |
tree | 33b40418e686a572e2154f07aaa2a5d377e9b10e /indra/newview/llviewerwindow.cpp | |
parent | eec332cfbe200f585d8fd382867b90d89d1ab5c0 (diff) |
for SH-846: design and implement the debug code to locate memory leaking
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
-rw-r--r-- | indra/newview/llviewerwindow.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 166b110412..ca0478ee0c 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -351,6 +351,14 @@ public: addText(xpos, ypos, llformat("Time: %d:%02d:%02d", hours,mins,secs)); ypos += y_inc; } +#if LL_WINDOWS + if (gSavedSettings.getBOOL("DebugShowMemory")) + { + addText(xpos, ypos, llformat("Memory: %d (KB)", LLMemory::getWorkingSetSize() / 1024)); + ypos += y_inc; + } +#endif + if (gDisplayCameraPos) { std::string camera_view_text; |