aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Monitoring/Stats/Stat.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Monitoring/Stats/Stat.cs')
-rw-r--r--OpenSim/Framework/Monitoring/Stats/Stat.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Framework/Monitoring/Stats/Stat.cs b/OpenSim/Framework/Monitoring/Stats/Stat.cs
index 69ac0a5..ca71911 100644
--- a/OpenSim/Framework/Monitoring/Stats/Stat.cs
+++ b/OpenSim/Framework/Monitoring/Stats/Stat.cs
@@ -27,8 +27,9 @@
27 27
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Reflection;
30using System.Text; 31using System.Text;
31 32using log4net;
32using OpenMetaverse.StructuredData; 33using OpenMetaverse.StructuredData;
33 34
34namespace OpenSim.Framework.Monitoring 35namespace OpenSim.Framework.Monitoring
@@ -38,6 +39,8 @@ namespace OpenSim.Framework.Monitoring
38 /// </summary> 39 /// </summary>
39 public class Stat : IDisposable 40 public class Stat : IDisposable
40 { 41 {
42// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
43
41 /// <summary> 44 /// <summary>
42 /// Category of this stat (e.g. cache, scene, etc). 45 /// Category of this stat (e.g. cache, scene, etc).
43 /// </summary> 46 /// </summary>
@@ -204,6 +207,8 @@ namespace OpenSim.Framework.Monitoring
204 if (m_samples.Count >= m_maxSamples) 207 if (m_samples.Count >= m_maxSamples)
205 m_samples.Dequeue(); 208 m_samples.Dequeue();
206 209
210// m_log.DebugFormat("[STAT]: Recording value {0} for {1}", newValue, Name);
211
207 m_samples.Enqueue(newValue); 212 m_samples.Enqueue(newValue);
208 } 213 }
209 } 214 }