#include <llfasttimerview.h>
Inheritance diagram for LLFastTimerView:
Public Member Functions | |
LLFastTimerView (const std::string &name, const LLRect &rect) | |
virtual | ~LLFastTimerView () |
virtual EWidgetType | getWidgetType () const |
virtual LLString | getWidgetTag () const |
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 |
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 203 of file llfasttimerview.cpp.
References FALSE, ft_display_didcalc, FTV_DISPLAY_NUM, i, level, llassert, mAvgCountTotal, MAX_VISIBLE_HISTORY, mBarEnd, mBarStart, mDisplayCalls, mDisplayCenter, mDisplayMode, mHoverBarIndex, mHoverIndex, mMaxCountTotal, mPrintStats, mScrollIndex, mSubtractHidden, S32, and LLFloater::setVisible().
LLFastTimerView::~LLFastTimerView | ( | ) | [virtual] |
void LLFastTimerView::draw | ( | ) | [virtual] |
Reimplemented from LLFloater.
Definition at line 405 of file llfasttimerview.cpp.
References LLViewerImage::bindTexture(), LLFontGL::BOLD, bottom, ft_display_info::color, LLFastTimer::countsPerSecond(), ft_display_info::desc, ft_display_info::disabled, LLView::draw(), f, FALSE, first, ft_display_idx, ft_display_table, LLFastTimer::FTM_HISTORY_NUM, LLFastTimer::FTM_NUM_TYPES, LLFastTimer::FTM_OTHER, LLFastTimer::FTM_RENDER_TIMER, FTV_DISPLAY_NUM, LLFrameTimer::getElapsedTimeF32(), LLImageGL::getHeight(), LLRectBase< Type >::getHeight(), LLViewerImageList::getImage(), LLControlGroup::getString(), LLViewerWindow::getVirtualWindowRect(), LLImageGL::getWidth(), LLFontGL::getWidth(), LLRectBase< Type >::getWidth(), gFrameIntervalSeconds, gImageList, gl_line_2d(), gl_rect_2d(), gl_segmented_rect_2d_fragment_tex(), glBegin, glColor4f, glColor4fv, glEnd, glVertex2f, LLColor4::grey, gViewerArt, gViewerWindow, height, i, j, LLFontGL::LEFT, left, lerp(), ft_display_info::level, level, LINE_GRAPH_HEIGHT, llassert, llclamp(), llendl, llfloor(), llformat(), llinfos, llmax(), llmin(), llround(), mAvgCountTotal, MAX_VISIBLE_HISTORY, mBarEnd, mBarRect, mBarStart, LLRectBase< Type >::mBottom, mDisplayCalls, mDisplayCenter, mDisplayMode, mHighlightTimer, mHoverBarIndex, mHoverIndex, MIPMAP_FALSE, LLRectBase< Type >::mLeft, mMaxCountTotal, mPrintStats, LLView::mRect, LLRectBase< Type >::mRight, mScrollIndex, mSubtractHidden, LLRectBase< Type >::mTop, LLColor4::mV, ft_display_info::parent, LLFontGL::renderUTF8(), right, S32, LLFastTimer::sCallAverage, LLFastTimer::sCallHistory, LLFastTimer::sCountAverage, LLFastTimer::sCountHistory, LLFastTimer::sCurFrameIndex, LLRectBase< Type >::setLeftTopAndSize(), sinf, LLFastTimer::sLastFrameIndex, LLFontGL::sMonospace, LLFastTimer::sPauseHistory, LLFastTimer::sResetHistory, t, ft_display_info::timer, LLFontGL::TOP, top, TRUE, LLColor4::white, width, x, and y.
Definition at line 287 of file llfasttimerview.cpp.
References FTV_DISPLAY_NUM, LLRectBase< Type >::getHeight(), LLView::mRect, S32, and LLFontGL::sMonospace.
Referenced by handleHover(), and handleMouseDown().
F64 LLFastTimerView::getTime | ( | LLFastTimer::EFastTimerType | tidx | ) |
Definition at line 1102 of file llfasttimerview.cpp.
References LLFastTimer::countsPerSecond(), ft_display_table, FTV_DISPLAY_NUM, i, ft_display_info::level, level, llendl, llwarns, S32, LLFastTimer::sCountAverage, and ft_display_info::timer.
Referenced by update_statistics().
LLString LLFastTimerView::getWidgetTag | ( | ) | const [virtual] |
Reimplemented from LLFloater.
Definition at line 270 of file llfasttimerview.cpp.
References LL_FAST_TIMER_VIEW_TAG.
EWidgetType LLFastTimerView::getWidgetType | ( | ) | const [virtual] |
Reimplemented from LLFloater.
Definition at line 265 of file llfasttimerview.cpp.
References WIDGET_TYPE_FAST_TIMER_VIEW.
Reimplemented from LLView.
Definition at line 357 of file llfasttimerview.cpp.
References ft_display_info::disabled, 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 LLFloater.
Definition at line 298 of file llfasttimerview.cpp.
References ft_display_info::disabled, FTV_DISPLAY_NUM, getLegendIndex(), level, MASK_ALT, MASK_CONTROL, MASK_SHIFT, mBarRect, mDisplayCalls, mDisplayCenter, mDisplayMode, LLRectBase< Type >::mLeft, mScrollIndex, mSubtractHidden, S32, LLFastTimer::sPauseHistory, and TRUE.
Reimplemented from LLFloater.
Definition at line 275 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 393 of file llfasttimerview.cpp.
References FALSE, LLFastTimer::FTM_HISTORY_NUM, LLView::getVisible(), llclamp(), llmin(), MAX_VISIBLE_HISTORY, mScrollIndex, LLView::pointInView(), S32, LLFastTimer::sLastFrameIndex, LLFastTimer::sPauseHistory, and TRUE.
U64 LLFastTimerView::mAvgCountTotal [private] |
S32* LLFastTimerView::mBarEnd [private] |
Definition at line 59 of file llfasttimerview.h.
Referenced by draw(), handleHover(), LLFastTimerView(), and ~LLFastTimerView().
LLRect LLFastTimerView::mBarRect [private] |
Definition at line 65 of file llfasttimerview.h.
Referenced by draw(), handleHover(), handleMouseDown(), and handleRightMouseDown().
S32* LLFastTimerView::mBarStart [private] |
Definition at line 58 of file llfasttimerview.h.
Referenced by draw(), handleHover(), LLFastTimerView(), and ~LLFastTimerView().
S32 LLFastTimerView::mDisplayCalls [private] |
Definition at line 62 of file llfasttimerview.h.
Referenced by draw(), handleMouseDown(), and LLFastTimerView().
S32 LLFastTimerView::mDisplayCenter [private] |
Definition at line 61 of file llfasttimerview.h.
Referenced by draw(), handleMouseDown(), and LLFastTimerView().
S32 LLFastTimerView::mDisplayMode [private] |
Definition at line 60 of file llfasttimerview.h.
Referenced by draw(), handleMouseDown(), and LLFastTimerView().
LLFrameTimer LLFastTimerView::mHighlightTimer [private] |
S32 LLFastTimerView::mHoverBarIndex [private] |
Definition at line 68 of file llfasttimerview.h.
Referenced by draw(), handleHover(), and LLFastTimerView().
S32 LLFastTimerView::mHoverIndex [private] |
Definition at line 67 of file llfasttimerview.h.
Referenced by draw(), handleHover(), and LLFastTimerView().
U64 LLFastTimerView::mMaxCountTotal [private] |
S32 LLFastTimerView::mPrintStats [private] |
Definition at line 71 of file llfasttimerview.h.
Referenced by draw(), handleRightMouseDown(), and LLFastTimerView().
S32 LLFastTimerView::mScrollIndex [private] |
Definition at line 66 of file llfasttimerview.h.
Referenced by draw(), handleMouseDown(), handleScrollWheel(), and LLFastTimerView().
S32 LLFastTimerView::mSubtractHidden [private] |
Definition at line 70 of file llfasttimerview.h.
Referenced by draw(), handleMouseDown(), and LLFastTimerView().