diff options
Diffstat (limited to 'OpenSim/Framework/Monitoring')
-rw-r--r-- | OpenSim/Framework/Monitoring/Stats/Stat.cs | 7 |
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 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Reflection; | ||
30 | using System.Text; | 31 | using System.Text; |
31 | 32 | using log4net; | |
32 | using OpenMetaverse.StructuredData; | 33 | using OpenMetaverse.StructuredData; |
33 | 34 | ||
34 | namespace OpenSim.Framework.Monitoring | 35 | namespace 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 | } |