diff options
author | Justin Clark-Casey (justincc) | 2013-06-18 23:07:18 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-06-18 23:07:18 +0100 |
commit | 9501a583cbc8fd819d2b13db4f9ad76958520ce7 (patch) | |
tree | 925a26099456963b6e87e0d35b6cc57f8a621bd9 /OpenSim/Framework/Monitoring | |
parent | Fix issue where stat samples were accidentally static, so that any additional... (diff) | |
download | opensim-SC-9501a583cbc8fd819d2b13db4f9ad76958520ce7.zip opensim-SC-9501a583cbc8fd819d2b13db4f9ad76958520ce7.tar.gz opensim-SC-9501a583cbc8fd819d2b13db4f9ad76958520ce7.tar.bz2 opensim-SC-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.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 | } |