aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs
index f0dccda..2544c7f 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs
@@ -74,6 +74,8 @@ namespace OpenSim.Region.ClientStack.Linden
74 /// </remarks> 74 /// </remarks>
75 public bool ProcessQueuedRequestsAsync { get; private set; } 75 public bool ProcessQueuedRequestsAsync { get; private set; }
76 76
77 private Stat m_queuedRequestsStat;
78
77 private Scene m_scene; 79 private Scene m_scene;
78 80
79 private IInventoryService m_InventoryService; 81 private IInventoryService m_InventoryService;
@@ -130,6 +132,8 @@ namespace OpenSim.Region.ClientStack.Linden
130 132
131 m_scene.EventManager.OnRegisterCaps -= RegisterCaps; 133 m_scene.EventManager.OnRegisterCaps -= RegisterCaps;
132 134
135 StatsManager.DeregisterStat(m_queuedRequestsStat);
136
133 if (ProcessQueuedRequestsAsync) 137 if (ProcessQueuedRequestsAsync)
134 { 138 {
135 if (m_workerThreads != null) 139 if (m_workerThreads != null)
@@ -149,6 +153,21 @@ namespace OpenSim.Region.ClientStack.Linden
149 if (!m_Enabled) 153 if (!m_Enabled)
150 return; 154 return;
151 155
156 m_queuedRequestsStat =
157 new Stat(
158 "QueuedFetchInventoryRequests",
159 "Number of fetch inventory requests queued for processing",
160 "",
161 "",
162 "scene",
163 m_scene.Name,
164 StatType.Pull,
165 MeasuresOfInterest.AverageChangeOverTime,
166 stat => { lock (m_queue) { stat.Value = m_queue.Count; } },
167 StatVerbosity.Debug);
168
169 StatsManager.RegisterStat(m_queuedRequestsStat);
170
152 m_InventoryService = m_scene.InventoryService; 171 m_InventoryService = m_scene.InventoryService;
153 m_LibraryService = m_scene.LibraryService; 172 m_LibraryService = m_scene.LibraryService;
154 173