aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-08-19 00:42:19 +0100
committerJustin Clark-Casey (justincc)2014-08-19 00:42:19 +0100
commit88b2fc61ff5e9a190d306a784839ad1ed1b30a8f (patch)
treea31f58576557635a340670ad67cb8dd080f5bd71 /OpenSim/Region
parentAdd experimental OutgoingQueueRefillEngine to handle queue refill processing ... (diff)
downloadopensim-SC-88b2fc61ff5e9a190d306a784839ad1ed1b30a8f.zip
opensim-SC-88b2fc61ff5e9a190d306a784839ad1ed1b30a8f.tar.gz
opensim-SC-88b2fc61ff5e9a190d306a784839ad1ed1b30a8f.tar.bz2
opensim-SC-88b2fc61ff5e9a190d306a784839ad1ed1b30a8f.tar.xz
Add clientstack.<scene>.OQRERequestsWaiting stat
Only present if OQRE is enabled
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/OutgoingQueueRefillEngine.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/OutgoingQueueRefillEngine.cs b/OpenSim/Region/ClientStack/Linden/UDP/OutgoingQueueRefillEngine.cs
index 8777402..0659d8e 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/OutgoingQueueRefillEngine.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/OutgoingQueueRefillEngine.cs
@@ -74,6 +74,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
74 74
75 private LLUDPServer m_udpServer; 75 private LLUDPServer m_udpServer;
76 76
77 private Stat m_oqreRequestsWaitingStat;
78
77 /// <summary> 79 /// <summary>
78 /// Used to signal that we are ready to complete stop. 80 /// Used to signal that we are ready to complete stop.
79 /// </summary> 81 /// </summary>
@@ -107,6 +109,21 @@ namespace OpenSim.Region.ClientStack.LindenUDP
107 109
108 m_requestQueue = new BlockingCollection<RefillRequest>(new ConcurrentQueue<RefillRequest>(), 5000); 110 m_requestQueue = new BlockingCollection<RefillRequest>(new ConcurrentQueue<RefillRequest>(), 5000);
109 111
112 m_oqreRequestsWaitingStat =
113 new Stat(
114 "OQRERequestsWaiting",
115 "Number of outgong queue refill requests waiting for processing.",
116 "",
117 "",
118 "clientstack",
119 m_udpServer.Scene.Name,
120 StatType.Pull,
121 MeasuresOfInterest.None,
122 stat => stat.Value = m_requestQueue.Count,
123 StatVerbosity.Debug);
124
125 StatsManager.RegisterStat(m_oqreRequestsWaitingStat);
126
110 Watchdog.StartThread( 127 Watchdog.StartThread(
111 ProcessRequests, 128 ProcessRequests,
112 String.Format("OutgoingQueueRefillEngineThread ({0})", m_udpServer.Scene.Name), 129 String.Format("OutgoingQueueRefillEngineThread ({0})", m_udpServer.Scene.Name),
@@ -161,6 +178,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
161 finally 178 finally
162 { 179 {
163 m_cancelSource.Dispose(); 180 m_cancelSource.Dispose();
181 StatsManager.DeregisterStat(m_oqreRequestsWaitingStat);
182 m_oqreRequestsWaitingStat = null;
164 m_requestQueue = null; 183 m_requestQueue = null;
165 } 184 }
166 } 185 }