blob: ec5cebcfdc314eee41dc346e4fefd87bd8866b5b (
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
|
/**
* @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
|