diff options
author | Don Kjer <don@lindenlab.com> | 2007-06-09 21:27:18 +0000 |
---|---|---|
committer | Don Kjer <don@lindenlab.com> | 2007-06-09 21:27:18 +0000 |
commit | 309b56280bff46f1696aee73cbd25f2e61232bc7 (patch) | |
tree | c26829d02900cb3d1e56ce37f4a2c1e833e6ce82 /indra/llcommon/llmetrics.h | |
parent | 61324a18b98d1fe0ca50d52f6b6019299a64794d (diff) |
svn merge -r 63284:63298 svn+ssh://svn/svn/linden/branches/content-loss-metrics-4 into release
Diffstat (limited to 'indra/llcommon/llmetrics.h')
-rw-r--r-- | indra/llcommon/llmetrics.h | 42 |
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 + |