diff options
author | Justin Clark-Casey (justincc) | 2012-03-06 23:21:17 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-03-19 21:26:04 +0000 |
commit | e9602656f8deda12dd343ba77d9ef5f58a239129 (patch) | |
tree | 0e05a7c69059fe7a80021e0e65cca5e4e8d82581 /OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |
parent | Fix TestSyntaxError() and TestSyntaxErrorDeclaringVariableInForLoop() (diff) | |
download | opensim-SC_OLD-e9602656f8deda12dd343ba77d9ef5f58a239129.zip opensim-SC_OLD-e9602656f8deda12dd343ba77d9ef5f58a239129.tar.gz opensim-SC_OLD-e9602656f8deda12dd343ba77d9ef5f58a239129.tar.bz2 opensim-SC_OLD-e9602656f8deda12dd343ba77d9ef5f58a239129.tar.xz |
Add sensor, dataserver requests, timer and listener counts to "xengine status" command.
This is for diagnostic purposes.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index c68f03f..d1cac9c 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -49,7 +49,10 @@ using OpenSim.Region.ScriptEngine.Shared; | |||
49 | using OpenSim.Region.ScriptEngine.Shared.ScriptBase; | 49 | using OpenSim.Region.ScriptEngine.Shared.ScriptBase; |
50 | using OpenSim.Region.ScriptEngine.Shared.CodeTools; | 50 | using OpenSim.Region.ScriptEngine.Shared.CodeTools; |
51 | using OpenSim.Region.ScriptEngine.Shared.Instance; | 51 | using OpenSim.Region.ScriptEngine.Shared.Instance; |
52 | using OpenSim.Region.ScriptEngine.Shared.Api; | ||
53 | using OpenSim.Region.ScriptEngine.Shared.Api.Plugins; | ||
52 | using OpenSim.Region.ScriptEngine.Interfaces; | 54 | using OpenSim.Region.ScriptEngine.Interfaces; |
55 | using Timer = OpenSim.Region.ScriptEngine.Shared.Api.Plugins.Timer; | ||
53 | 56 | ||
54 | using ScriptCompileQueue = OpenSim.Framework.LocklessQueue<object[]>; | 57 | using ScriptCompileQueue = OpenSim.Framework.LocklessQueue<object[]>; |
55 | 58 | ||
@@ -386,6 +389,18 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
386 | sb.AppendFormat("Work items waiting : {0}\n", m_ThreadPool.WaitingCallbacks); | 389 | sb.AppendFormat("Work items waiting : {0}\n", m_ThreadPool.WaitingCallbacks); |
387 | // sb.AppendFormat("Assemblies loaded : {0}\n", m_Assemblies.Count); | 390 | // sb.AppendFormat("Assemblies loaded : {0}\n", m_Assemblies.Count); |
388 | 391 | ||
392 | SensorRepeat sr = AsyncCommandManager.GetSensorRepeatPlugin(this); | ||
393 | sb.AppendFormat("Sensors : {0}\n", sr.SensorsCount); | ||
394 | |||
395 | Dataserver ds = AsyncCommandManager.GetDataserverPlugin(this); | ||
396 | sb.AppendFormat("Dataserver requests : {0}\n", ds.DataserverRequestsCount); | ||
397 | |||
398 | Timer t = AsyncCommandManager.GetTimerPlugin(this); | ||
399 | sb.AppendFormat("Timers : {0}\n", t.TimersCount); | ||
400 | |||
401 | Listener l = AsyncCommandManager.GetListenerPlugin(this); | ||
402 | sb.AppendFormat("Listeners : {0}\n", l.ListenerCount); | ||
403 | |||
389 | MainConsole.Instance.OutputFormat(sb.ToString()); | 404 | MainConsole.Instance.OutputFormat(sb.ToString()); |
390 | } | 405 | } |
391 | 406 | ||