summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterlagmeter.h
blob: 72766fec852dab83e96811d7dc7d37cf4d70d61f (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
52
53
54
55
/** 
 * @file llfloaterlagmeter.h
 * @brief The "Lag-o-Meter" floater used to tell users what is causing lag.
 *
 * Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
 * $License$
 */

#ifndef LLFLOATERLAGMETER_H
#define LLFLOATERLAGMETER_H

#include "llfloater.h"

class LLFloaterLagMeter : public LLFloater
{
public:
	/*virtual*/ void draw();
	static void show(void*);

private:
	LLFloaterLagMeter();
	/*virtual*/ ~LLFloaterLagMeter();

	void determineClient();
	void determineNetwork();
	void determineServer();

	static void onClickShrink(void * data);

	bool mMinimized;
	S32 mMaxWidth, mMinWidth;

	F32 mClientFrameTimeCritical;
	F32 mClientFrameTimeWarning;
	LLButton * mClientButton;
	LLTextBox * mClientText;
	LLTextBox * mClientCause;

	F32 mNetworkPacketLossCritical;
	F32 mNetworkPacketLossWarning;
	LLButton * mNetworkButton;
	LLTextBox * mNetworkText;
	LLTextBox * mNetworkCause;

	F32 mServerFrameTimeCritical;
	F32 mServerFrameTimeWarning;
	F32 mServerSingleProcessMaxTime;
	LLButton * mServerButton;
	LLTextBox * mServerText;
	LLTextBox * mServerCause;

	static LLFloaterLagMeter * sInstance;
};

#endif