blob: be66a8481ac814b8af1eabd7594962e193489460 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
/**
* @file llfasttimerview.h
* @brief LLFastTimerView class definition
*
* Copyright (c) 2004-$CurrentYear$, Linden Research, Inc.
* $License$
*/
#ifndef LL_LLFASTTIMERVIEW_H
#define LL_LLFASTTIMERVIEW_H
#include "llfloater.h"
#include "llframetimer.h"
class LLFastTimerView : public LLFloater
{
public:
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:
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;
};
#endif
|