diff options
author | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:11 -0500 |
commit | 215f423cbe18fe9ca14a26caef918d303bad28ff (patch) | |
tree | 0743442b286216cc8e19aa487c26f4e9345ffd64 /linden/indra/newview/llfloaterlagmeter.h | |
parent | Second Life viewer sources 1.18.3.5-RC (diff) | |
download | meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.zip meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.gz meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.bz2 meta-impy-215f423cbe18fe9ca14a26caef918d303bad28ff.tar.xz |
Second Life viewer sources 1.18.4.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloaterlagmeter.h | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterlagmeter.h b/linden/indra/newview/llfloaterlagmeter.h new file mode 100644 index 0000000..0309f19 --- /dev/null +++ b/linden/indra/newview/llfloaterlagmeter.h | |||
@@ -0,0 +1,80 @@ | |||
1 | /** | ||
2 | * @file llfloaterlagmeter.h | ||
3 | * @brief The "Lag-o-Meter" floater used to tell users what is causing lag. | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ | ||
6 | * | ||
7 | * Copyright (c) 2007, Linden Research, Inc. | ||
8 | * | ||
9 | * Second Life Viewer Source Code | ||
10 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
11 | * to you under the terms of the GNU General Public License, version 2.0 | ||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
15 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
16 | * | ||
17 | * There are special exceptions to the terms and conditions of the GPL as | ||
18 | * it is applied to this Source Code. View the full text of the exception | ||
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
20 | * online at http://secondlife.com/developers/opensource/flossexception | ||
21 | * | ||
22 | * By copying, modifying or distributing this software, you acknowledge | ||
23 | * that you have read and understood your obligations described above, | ||
24 | * and agree to abide by those obligations. | ||
25 | * | ||
26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
28 | * COMPLETENESS OR PERFORMANCE. | ||
29 | * $/LicenseInfo$ | ||
30 | */ | ||
31 | |||
32 | #ifndef LLFLOATERLAGMETER_H | ||
33 | #define LLFLOATERLAGMETER_H | ||
34 | |||
35 | #include "llfloater.h" | ||
36 | |||
37 | class LLFloaterLagMeter : public LLFloater | ||
38 | { | ||
39 | public: | ||
40 | /*virtual*/ void draw(); | ||
41 | static void show(void*); | ||
42 | |||
43 | private: | ||
44 | LLFloaterLagMeter(); | ||
45 | /*virtual*/ ~LLFloaterLagMeter(); | ||
46 | |||
47 | void determineClient(); | ||
48 | void determineNetwork(); | ||
49 | void determineServer(); | ||
50 | |||
51 | static void onClickShrink(void * data); | ||
52 | |||
53 | bool mShrunk; | ||
54 | S32 mMaxWidth, mMinWidth; | ||
55 | |||
56 | F32 mClientFrameTimeCritical; | ||
57 | F32 mClientFrameTimeWarning; | ||
58 | LLButton * mClientButton; | ||
59 | LLTextBox * mClientText; | ||
60 | LLTextBox * mClientCause; | ||
61 | |||
62 | F32 mNetworkPacketLossCritical; | ||
63 | F32 mNetworkPacketLossWarning; | ||
64 | F32 mNetworkPingCritical; | ||
65 | F32 mNetworkPingWarning; | ||
66 | LLButton * mNetworkButton; | ||
67 | LLTextBox * mNetworkText; | ||
68 | LLTextBox * mNetworkCause; | ||
69 | |||
70 | F32 mServerFrameTimeCritical; | ||
71 | F32 mServerFrameTimeWarning; | ||
72 | F32 mServerSingleProcessMaxTime; | ||
73 | LLButton * mServerButton; | ||
74 | LLTextBox * mServerText; | ||
75 | LLTextBox * mServerCause; | ||
76 | |||
77 | static LLFloaterLagMeter * sInstance; | ||
78 | }; | ||
79 | |||
80 | #endif | ||