diff options
author | Robert Adams | 2013-02-21 13:36:31 -0800 |
---|---|---|
committer | Robert Adams | 2013-02-21 15:53:02 -0800 |
commit | 303e21babe48e9daf39dad6b3d721fd5b9bbfb8f (patch) | |
tree | 234805e7e41c2e103bbfc91909b77d23511ab2ab /OpenSim/Framework/Monitoring/Stats/Stat.cs | |
parent | minor: Change summary in "show appearance" console command to "incomplete" ra... (diff) | |
download | opensim-SC_OLD-303e21babe48e9daf39dad6b3d721fd5b9bbfb8f.zip opensim-SC_OLD-303e21babe48e9daf39dad6b3d721fd5b9bbfb8f.tar.gz opensim-SC_OLD-303e21babe48e9daf39dad6b3d721fd5b9bbfb8f.tar.bz2 opensim-SC_OLD-303e21babe48e9daf39dad6b3d721fd5b9bbfb8f.tar.xz |
Add CounterStat which is a wrapper for a counter stat but, because
the 'count' event is internal, historical data can be built it.
Also includes EventHistogram class for building time based,
bucketed history of event occurances.
Make Stat implement IDisposable for subclasses that might need it.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Monitoring/Stats/Stat.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Framework/Monitoring/Stats/Stat.cs b/OpenSim/Framework/Monitoring/Stats/Stat.cs index f91251b..fccc460 100644 --- a/OpenSim/Framework/Monitoring/Stats/Stat.cs +++ b/OpenSim/Framework/Monitoring/Stats/Stat.cs | |||
@@ -34,7 +34,7 @@ namespace OpenSim.Framework.Monitoring | |||
34 | /// <summary> | 34 | /// <summary> |
35 | /// Holds individual statistic details | 35 | /// Holds individual statistic details |
36 | /// </summary> | 36 | /// </summary> |
37 | public class Stat | 37 | public class Stat : IDisposable |
38 | { | 38 | { |
39 | /// <summary> | 39 | /// <summary> |
40 | /// Category of this stat (e.g. cache, scene, etc). | 40 | /// Category of this stat (e.g. cache, scene, etc). |
@@ -181,6 +181,12 @@ namespace OpenSim.Framework.Monitoring | |||
181 | Verbosity = verbosity; | 181 | Verbosity = verbosity; |
182 | } | 182 | } |
183 | 183 | ||
184 | // IDisposable.Dispose() | ||
185 | public virtual void Dispose() | ||
186 | { | ||
187 | return; | ||
188 | } | ||
189 | |||
184 | /// <summary> | 190 | /// <summary> |
185 | /// Record a value in the sample set. | 191 | /// Record a value in the sample set. |
186 | /// </summary> | 192 | /// </summary> |