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.
This commit is contained in:
Robert Adams
2013-02-21 13:36:31 -08:00
parent 9de670c550
commit 303e21babe
2 changed files with 218 additions and 1 deletions

View File

@@ -34,7 +34,7 @@ namespace OpenSim.Framework.Monitoring
/// <summary>
/// Holds individual statistic details
/// </summary>
public class Stat
public class Stat : IDisposable
{
/// <summary>
/// Category of this stat (e.g. cache, scene, etc).
@@ -181,6 +181,12 @@ namespace OpenSim.Framework.Monitoring
Verbosity = verbosity;
}
// IDisposable.Dispose()
public virtual void Dispose()
{
return;
}
/// <summary>
/// Record a value in the sample set.
/// </summary>