diff options
author | Justin Clark-Casey (justincc) | 2012-03-06 23:21:17 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-03-06 23:21:17 +0000 |
commit | 98251cdab364baf20537a1b5a6260c68e6630ccf (patch) | |
tree | 698a491b8bbcdde88cd68b12e12b9db4bdaf180b /OpenSim/Region/ScriptEngine/XEngine | |
parent | Remove unnecessary explicit ElapsedEventHandler in SimReporter (diff) | |
download | opensim-SC_OLD-98251cdab364baf20537a1b5a6260c68e6630ccf.zip opensim-SC_OLD-98251cdab364baf20537a1b5a6260c68e6630ccf.tar.gz opensim-SC_OLD-98251cdab364baf20537a1b5a6260c68e6630ccf.tar.bz2 opensim-SC_OLD-98251cdab364baf20537a1b5a6260c68e6630ccf.tar.xz |
Add sensor, dataserver requests, timer and listener counts to "xengine status" command.
This is for diagnostic purposes.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine')
-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 | ||