aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Monitoring
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-06-18 23:07:18 +0100
committerJustin Clark-Casey (justincc)2013-06-18 23:07:18 +0100
commit9501a583cbc8fd819d2b13db4f9ad76958520ce7 (patch)
tree925a26099456963b6e87e0d35b6cc57f8a621bd9 /OpenSim/Framework/Monitoring
parentFix issue where stat samples were accidentally static, so that any additional... (diff)
downloadopensim-SC_OLD-9501a583cbc8fd819d2b13db4f9ad76958520ce7.zip
opensim-SC_OLD-9501a583cbc8fd819d2b13db4f9ad76958520ce7.tar.gz
opensim-SC_OLD-9501a583cbc8fd819d2b13db4f9ad76958520ce7.tar.bz2
opensim-SC_OLD-9501a583cbc8fd819d2b13db4f9ad76958520ce7.tar.xz
Make number of inbound http requests handled available as a httpserver.<port>.IncomingHTTPRequestsProcessed stat
Diffstat (limited to 'OpenSim/Framework/Monitoring')
-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 }