aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XEngine
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-03-06 23:21:17 +0000
committerJustin Clark-Casey (justincc)2012-03-06 23:21:17 +0000
commit98251cdab364baf20537a1b5a6260c68e6630ccf (patch)
tree698a491b8bbcdde88cd68b12e12b9db4bdaf180b /OpenSim/Region/ScriptEngine/XEngine
parentRemove unnecessary explicit ElapsedEventHandler in SimReporter (diff)
downloadopensim-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.cs15
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;
49using OpenSim.Region.ScriptEngine.Shared.ScriptBase; 49using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
50using OpenSim.Region.ScriptEngine.Shared.CodeTools; 50using OpenSim.Region.ScriptEngine.Shared.CodeTools;
51using OpenSim.Region.ScriptEngine.Shared.Instance; 51using OpenSim.Region.ScriptEngine.Shared.Instance;
52using OpenSim.Region.ScriptEngine.Shared.Api;
53using OpenSim.Region.ScriptEngine.Shared.Api.Plugins;
52using OpenSim.Region.ScriptEngine.Interfaces; 54using OpenSim.Region.ScriptEngine.Interfaces;
55using Timer = OpenSim.Region.ScriptEngine.Shared.Api.Plugins.Timer;
53 56
54using ScriptCompileQueue = OpenSim.Framework.LocklessQueue<object[]>; 57using 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