#include <llmemoryview.h>
Inheritance diagram for LLMemoryView:
Public Member Functions | |
LLMemoryView (const std::string &name, const LLRect &rect) | |
virtual | ~LLMemoryView () |
virtual EWidgetType | getWidgetType () const |
virtual LLString | getWidgetTag () const |
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 53 of file llmemoryview.cpp.
References FALSE, mDumpTimer, LLFrameTimer::reset(), and LLView::setVisible().
LLMemoryView::~LLMemoryView | ( | ) | [virtual] |
Definition at line 67 of file llmemoryview.cpp.
void LLMemoryView::draw | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 148 of file llmemoryview.cpp.
References bottom, mtv_display_info::color, mtv_display_info::desc, LLView::draw(), dumpData(), f, LLRectBase< Type >::getHeight(), LLFontGL::getWidth(), LLRectBase< Type >::getWidth(), gl_rect_2d(), height, i, LLFontGL::LEFT, left, llformat(), llmax(), mtv_display_info::memtype, LLView::mRect, MTV_DISPLAY_NUM, LLMemType::MTYPE_NUM_TYPES, LLMemType::MTYPE_OTHER, LLFontGL::renderUTF8(), right, S32, LLColor4::setAlpha(), LLFontGL::sMonospace, LLMemType::sTotalMem, LLFontGL::TOP, top, LLColor4::white, width, x, and y.
void LLMemoryView::dumpData | ( | ) | [private] |
Definition at line 267 of file llmemoryview.cpp.
References LLFrameTimer::getElapsedTimeF32(), i, llformat(), mDelay, mDumpTimer, LLMemType::MTYPE_NUM_TYPES, LLFrameTimer::reset(), S32, LLMemType::sMaxTotalMem, and LLMemType::sTotalMem.
Referenced by draw().
LLString LLMemoryView::getWidgetTag | ( | ) | const [virtual] |
EWidgetType LLMemoryView::getWidgetType | ( | ) | const [virtual] |
Implements LLView.
Definition at line 71 of file llmemoryview.cpp.
References WIDGET_TYPE_MEMORY_VIEW.
Reimplemented from LLView.
Definition at line 81 of file llmemoryview.cpp.
References MASK_CONTROL, MASK_SHIFT, and TRUE.
void LLMemoryView::setDataDumpInterval | ( | float | delay | ) | [private] |
float LLMemoryView::mDelay [private] |
LLFrameTimer LLMemoryView::mDumpTimer [private] |