summaryrefslogtreecommitdiff
path: root/indra/llcommon/llmetrics.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcommon/llmetrics.h')
-rw-r--r--indra/llcommon/llmetrics.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/indra/llcommon/llmetrics.h b/indra/llcommon/llmetrics.h
new file mode 100644
index 0000000000..ec5cebcfdc
--- /dev/null
+++ b/indra/llcommon/llmetrics.h
@@ -0,0 +1,42 @@
+/**
+ * @file llmetrics.h
+ * @author Kelly
+ * @date 2007-05-25
+ * @brief Declaration of metrics accumulation and associated functions
+ *
+ * Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
+ * $License$
+ */
+
+#ifndef LL_LLMETRICS_H
+#define LL_LLMETRICS_H
+
+class LLMetricsImpl;
+class LLSD;
+
+class LLMetrics
+{
+public:
+ LLMetrics();
+ virtual ~LLMetrics();
+
+ // Adds this event to aggregate totals and records details to syslog (llinfos)
+ virtual void recordEventDetails(const std::string& location,
+ const std::string& mesg,
+ bool success,
+ LLSD stats);
+
+ // Adds this event to aggregate totals
+ virtual void recordEvent(const std::string& location, const std::string& mesg, bool success);
+
+ // Prints aggregate totals and resets the counts.
+ virtual void printTotals(LLSD meta);
+
+
+private:
+
+ LLMetricsImpl* mImpl;
+};
+
+#endif
+