#include <llfasttimerview.h>
Public Member Functions | |
LLFastTimerView (const std::string &name, const LLRect &rect) | |
virtual | ~LLFastTimerView () |
virtual BOOL | handleMouseDown (S32 x, S32 y, MASK mask) |
virtual BOOL | handleRightMouseDown (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 BOOL | handleScrollWheel (S32 x, S32 y, S32 clicks) |
virtual void | draw () |
S32 | getLegendIndex (S32 y) |
F64 | getTime (LLFastTimer::EFastTimerType tidx) |
Private Attributes | |
S32 * | mBarStart |
S32 * | mBarEnd |
S32 | mDisplayMode |
S32 | mDisplayCenter |
S32 | mDisplayCalls |
S32 | mDisplayHz |
U64 | mAvgCountTotal |
U64 | mMaxCountTotal |
LLRect | mBarRect |
S32 | mScrollIndex |
S32 | mHoverIndex |
S32 | mHoverBarIndex |
LLFrameTimer | mHighlightTimer |
S32 | mSubtractHidden |
S32 | mPrintStats |
Definition at line 38 of file llfasttimerview.h.
LLFastTimerView::LLFastTimerView | ( | const std::string & | name, | |
const LLRect & | rect | |||
) |
Definition at line 210 of file llfasttimerview.cpp.
References ft_display_info::desc, ft_display_info::disabled, FALSE, ft_display_didcalc, FTV_DISPLAY_NUM, i, ft_display_info::level, llassert, mAvgCountTotal, MAX_VISIBLE_HISTORY, mBarEnd, mBarStart, mDisplayCalls, mDisplayCenter, mDisplayHz, mDisplayMode, mHoverBarIndex, mHoverIndex, mMaxCountTotal, mPrintStats, mScrollIndex, mSubtractHidden, ft_display_info::parent, S32, and LLFloater::setVisible().
LLFastTimerView::~LLFastTimerView | ( | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 296 of file llfasttimerview.cpp.
References ft_display_info::disabled, FTV_DISPLAY_NUM, getLegendIndex(), ft_display_info::level, MASK_ALT, MASK_CONTROL, MASK_SHIFT, mBarRect, mDisplayCalls, mDisplayCenter, mDisplayHz, mDisplayMode, LLRectBase< Type >::mLeft, mScrollIndex, mSubtractHidden, S32, LLFastTimer::sPauseHistory, and TRUE.
Reimplemented from LLFloater.
Definition at line 273 of file llfasttimerview.cpp.
References FALSE, LLRectBase< Type >::getHeight(), llclamp(), MAX_VISIBLE_HISTORY, mBarRect, LLRectBase< Type >::mBottom, mPrintStats, LLRectBase< Type >::pointInRect(), and S32.
Reimplemented from LLView.
Definition at line 363 of file llfasttimerview.cpp.
References ft_display_info::disabled, FALSE, FTV_DISPLAY_NUM, LLRectBase< Type >::getHeight(), getLegendIndex(), i, MAX_VISIBLE_HISTORY, mBarEnd, mBarRect, mBarStart, LLRectBase< Type >::mBottom, mHoverBarIndex, mHoverIndex, LLRectBase< Type >::mLeft, LLRectBase< Type >::pointInRect(), S32, LLFastTimer::sPauseHistory, and TRUE.
Reimplemented from LLView.
Definition at line 399 of file llfasttimerview.cpp.
References LLFastTimer::FTM_HISTORY_NUM, llclamp(), llmin(), MAX_VISIBLE_HISTORY, mScrollIndex, S32, LLFastTimer::sLastFrameIndex, LLFastTimer::sPauseHistory, and TRUE.
void LLFastTimerView::draw | ( | void | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 407 of file llfasttimerview.cpp.
References LLGLImmediate::begin(), LLViewerImage::bindTexture(), LLFontGL::BOLD, LLFontGL::BOTTOM, ft_display_info::color, LLGLImmediate::color4f(), LLGLImmediate::color4fv(), LLFastTimer::countsPerSecond(), ft_display_info::desc, ft_display_info::disabled, LLView::draw(), LLGLImmediate::end(), FALSE, LLGLImmediate::flush(), LLFastTimer::FTM_HISTORY_NUM, LLFastTimer::FTM_NUM_TYPES, LLFastTimer::FTM_OTHER, LLFastTimer::FTM_RENDER_TIMER, FTV_DISPLAY_NUM, LLFrameTimer::getElapsedTimeF32(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLUI::getUIImage(), LLViewerWindow::getVirtualWindowRect(), LLFontGL::getWidth(), LLRectBase< Type >::getWidth(), gFrameIntervalSeconds, gGL, gl_line_2d(), gl_rect_2d(), gl_segmented_rect_2d_fragment_tex(), LLColor4::grey, gViewerWindow, i, j, LLFontGL::LEFT, lerp(), ft_display_info::level, LINE_GRAPH_HEIGHT, LLVertexBuffer::LINE_STRIP, LLVertexBuffer::LINES, llassert, llclamp(), llendl, llfloor(), llformat(), llinfos, llmax(), llmin(), llround(), mAvgCountTotal, MAX_VISIBLE_HISTORY, mBarEnd, mBarRect, mBarStart, LLRectBase< Type >::mBottom, mDisplayCalls, mDisplayCenter, mDisplayHz, mDisplayMode, mHighlightTimer, mHoverBarIndex, mHoverIndex, LLRectBase< Type >::mLeft, mMaxCountTotal, mPrintStats, LLRectBase< Type >::mRight, mScrollIndex, mSubtractHidden, LLRectBase< Type >::mTop, LLColor4::mV, ft_display_info::parent, LLFontGL::renderUTF8(), S32, LLFastTimer::sCallAverage, LLFastTimer::sCallHistory, LLFastTimer::sCountAverage, LLFastTimer::sCountHistory, LLFastTimer::sCurFrameIndex, sinf, LLFastTimer::sLastFrameIndex, LLFontGL::sMonospace, LLFastTimer::sPauseHistory, LLFastTimer::sResetHistory, tut::tc(), ft_display_info::timer, LLFontGL::TOP, LLGLImmediate::vertex2f(), LLGLImmediate::vertex2i(), and LLColor4::white.
Definition at line 285 of file llfasttimerview.cpp.
References FTV_DISPLAY_NUM, LLRectBase< Type >::getHeight(), LLFontGL::getLineHeight(), LLView::getRect(), S32, and LLFontGL::sMonospace.
Referenced by handleHover(), and handleMouseDown().
F64 LLFastTimerView::getTime | ( | LLFastTimer::EFastTimerType | tidx | ) |
Definition at line 1124 of file llfasttimerview.cpp.
References LLFastTimer::countsPerSecond(), FTV_DISPLAY_NUM, i, ft_display_info::level, llendl, llwarns, S32, LLFastTimer::sCountAverage, and ft_display_info::timer.
Referenced by update_statistics().
S32* LLFastTimerView::mBarStart [private] |
Definition at line 55 of file llfasttimerview.h.
Referenced by draw(), handleHover(), LLFastTimerView(), and ~LLFastTimerView().
S32* LLFastTimerView::mBarEnd [private] |
Definition at line 56 of file llfasttimerview.h.
Referenced by draw(), handleHover(), LLFastTimerView(), and ~LLFastTimerView().
S32 LLFastTimerView::mDisplayMode [private] |
Definition at line 57 of file llfasttimerview.h.
Referenced by draw(), handleMouseDown(), and LLFastTimerView().
S32 LLFastTimerView::mDisplayCenter [private] |
Definition at line 58 of file llfasttimerview.h.
Referenced by draw(), handleMouseDown(), and LLFastTimerView().
S32 LLFastTimerView::mDisplayCalls [private] |
Definition at line 59 of file llfasttimerview.h.
Referenced by draw(), handleMouseDown(), and LLFastTimerView().
S32 LLFastTimerView::mDisplayHz [private] |
Definition at line 60 of file llfasttimerview.h.
Referenced by draw(), handleMouseDown(), and LLFastTimerView().
U64 LLFastTimerView::mAvgCountTotal [private] |
U64 LLFastTimerView::mMaxCountTotal [private] |
LLRect LLFastTimerView::mBarRect [private] |
Definition at line 63 of file llfasttimerview.h.
Referenced by draw(), handleHover(), handleMouseDown(), and handleRightMouseDown().
S32 LLFastTimerView::mScrollIndex [private] |
Definition at line 64 of file llfasttimerview.h.
Referenced by draw(), handleMouseDown(), handleScrollWheel(), and LLFastTimerView().
S32 LLFastTimerView::mHoverIndex [private] |
Definition at line 65 of file llfasttimerview.h.
Referenced by draw(), handleHover(), and LLFastTimerView().
S32 LLFastTimerView::mHoverBarIndex [private] |
Definition at line 66 of file llfasttimerview.h.
Referenced by draw(), handleHover(), and LLFastTimerView().
LLFrameTimer LLFastTimerView::mHighlightTimer [private] |
S32 LLFastTimerView::mSubtractHidden [private] |
Definition at line 68 of file llfasttimerview.h.
Referenced by draw(), handleMouseDown(), and LLFastTimerView().
S32 LLFastTimerView::mPrintStats [private] |
Definition at line 69 of file llfasttimerview.h.
Referenced by draw(), handleRightMouseDown(), and LLFastTimerView().