aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llmetrics.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llcommon/llmetrics.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/linden/indra/llcommon/llmetrics.h b/linden/indra/llcommon/llmetrics.h
new file mode 100644
index 0000000..2c216c3
--- /dev/null
+++ b/linden/indra/llcommon/llmetrics.h
@@ -0,0 +1,62 @@
1/**
2 * @file llmetrics.h
3 * @author Kelly
4 * @date 2007-05-25
5 * @brief Declaration of metrics accumulation and associated functions
6 *
7 * Copyright (c) 2007-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 */
30
31#ifndef LL_LLMETRICS_H
32#define LL_LLMETRICS_H
33
34class LLMetricsImpl;
35class LLSD;
36
37class LLMetrics
38{
39public:
40 LLMetrics();
41 virtual ~LLMetrics();
42
43 // Adds this event to aggregate totals and records details to syslog (llinfos)
44 virtual void recordEventDetails(const std::string& location,
45 const std::string& mesg,
46 bool success,
47 LLSD stats);
48
49 // Adds this event to aggregate totals
50 virtual void recordEvent(const std::string& location, const std::string& mesg, bool success);
51
52 // Prints aggregate totals and resets the counts.
53 virtual void printTotals(LLSD meta);
54
55
56private:
57
58 LLMetricsImpl* mImpl;
59};
60
61#endif
62