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/Shared/Api/Implementation/Plugins/Timer.cs | |
parent | Remove unnecessary explicit ElapsedEventHandler in SimReporter (diff) | |
download | opensim-SC-98251cdab364baf20537a1b5a6260c68e6630ccf.zip opensim-SC-98251cdab364baf20537a1b5a6260c68e6630ccf.tar.gz opensim-SC-98251cdab364baf20537a1b5a6260c68e6630ccf.tar.bz2 opensim-SC-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/Shared/Api/Implementation/Plugins/Timer.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Timer.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Timer.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Timer.cs index eeb59d9..bc63030 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Timer.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Timer.cs | |||
@@ -37,6 +37,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins | |||
37 | { | 37 | { |
38 | public AsyncCommandManager m_CmdManager; | 38 | public AsyncCommandManager m_CmdManager; |
39 | 39 | ||
40 | public int TimersCount | ||
41 | { | ||
42 | get | ||
43 | { | ||
44 | lock (TimerListLock) | ||
45 | return Timers.Count; | ||
46 | } | ||
47 | } | ||
48 | |||
40 | public Timer(AsyncCommandManager CmdManager) | 49 | public Timer(AsyncCommandManager CmdManager) |
41 | { | 50 | { |
42 | m_CmdManager = CmdManager; | 51 | m_CmdManager = CmdManager; |