#include <llmemoryview.h>
Public Member Functions | |
LLMemoryView (const std::string &name, const LLRect &rect) | |
virtual | ~LLMemoryView () |
virtual BOOL | handleMouseDown (S32 x, S32 y, MASK mask) |
virtual BOOL | handleMouseUp (S32 x, S32 y, MASK mask) |
virtual BOOL | handleHover (S32 x, S32 y, MASK mask) |
virtual void | draw () |
Private Member Functions | |
void | setDataDumpInterval (float delay) |
void | dumpData () |
Private Attributes | |
float | mDelay |
LLFrameTimer | mDumpTimer |
Definition at line 37 of file llmemoryview.h.
LLMemoryView::LLMemoryView | ( | const std::string & | name, | |
const LLRect & | rect | |||
) |
Definition at line 52 of file llmemoryview.cpp.
References indra::base::config::dump(), FALSE, LLFile::fopen(), mDumpTimer, LLFrameTimer::reset(), and LLView::setVisible().
LLMemoryView::~LLMemoryView | ( | ) | [virtual] |
Definition at line 66 of file llmemoryview.cpp.
Reimplemented from LLView.
Definition at line 70 of file llmemoryview.cpp.
References MASK_CONTROL, MASK_SHIFT, and TRUE.
void LLMemoryView::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Definition at line 139 of file llmemoryview.cpp.
References mtv_display_info::color, mtv_display_info::desc, LLView::draw(), dumpData(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLFontGL::getWidth(), LLRectBase< Type >::getWidth(), gl_rect_2d(), i, LLFontGL::LEFT, llformat(), llmax(), mtv_display_info::memtype, MTV_DISPLAY_NUM, LLMemType::MTYPE_NUM_TYPES, LLMemType::MTYPE_OTHER, LLFontGL::renderUTF8(), S32, LLColor4::setAlpha(), LLFontGL::sMonospace, LLMemType::sTotalMem, LLFontGL::TOP, and LLColor4::white.
void LLMemoryView::setDataDumpInterval | ( | float | delay | ) | [private] |
void LLMemoryView::dumpData | ( | ) | [private] |
Definition at line 257 of file llmemoryview.cpp.
References indra::base::config::dump(), LLFile::fopen(), LLFrameTimer::getElapsedTimeF32(), i, llformat(), mDelay, mDumpTimer, LLMemType::MTYPE_NUM_TYPES, LLFrameTimer::reset(), S32, LLMemType::sMaxTotalMem, and LLMemType::sTotalMem.
Referenced by draw().
float LLMemoryView::mDelay [private] |
LLFrameTimer LLMemoryView::mDumpTimer [private] |