Add httpserver.<port-number>,QueuedPollResponses stat

This shows the number pf poll responses queued for processing.
0.8.0.3
Justin Clark-Casey (justincc) 2014-03-18 23:21:07 +00:00
parent 7df325c275
commit eed343ed8a
1 changed files with 13 additions and 0 deletions

View File

@ -77,6 +77,19 @@ namespace OpenSim.Framework.Servers.HttpServer
PerformResponsesAsync = performResponsesAsync;
m_WorkerThreadCount = pWorkerThreadCount;
m_workerThreads = new Thread[m_WorkerThreadCount];
StatsManager.RegisterStat(
new Stat(
"QueuedPollResponses",
"Number of non long-poll responses queued for sending.",
"",
"",
"httpserver",
m_server.Port.ToString(),
StatType.Pull,
MeasuresOfInterest.AverageChangeOverTime,
stat => m_requests.Count(),
StatVerbosity.Debug));
}
public void Start()