diff options
author | Justin Clark-Casey (justincc) | 2012-12-05 22:33:28 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-12-05 22:33:46 +0000 |
commit | e8df0f1b4c3194c7f5c1a354b5d5d2f67d6a250c (patch) | |
tree | 11271357c58783e6efce2eafb078d17799829ecb /OpenSim/Region/ScriptEngine/Shared/Instance | |
parent | Remove very probably unused PrimitiveBaseShape(bool) constructor to reduce co... (diff) | |
download | opensim-SC_OLD-e8df0f1b4c3194c7f5c1a354b5d5d2f67d6a250c.zip opensim-SC_OLD-e8df0f1b4c3194c7f5c1a354b5d5d2f67d6a250c.tar.gz opensim-SC_OLD-e8df0f1b4c3194c7f5c1a354b5d5d2f67d6a250c.tar.bz2 opensim-SC_OLD-e8df0f1b4c3194c7f5c1a354b5d5d2f67d6a250c.tar.xz |
Add IScriptInstance.EventsProcessed stat so that we can record this information and display in "show scripts" for debug purposes
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Instance')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index 5793cc9..5bfe97a 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |||
@@ -173,6 +173,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
173 | 173 | ||
174 | public Queue EventQueue { get; private set; } | 174 | public Queue EventQueue { get; private set; } |
175 | 175 | ||
176 | public long EventsProcessed { get; private set; } | ||
177 | |||
176 | public int StartParam { get; set; } | 178 | public int StartParam { get; set; } |
177 | 179 | ||
178 | public TaskInventoryItem ScriptTask { get; private set; } | 180 | public TaskInventoryItem ScriptTask { get; private set; } |
@@ -808,6 +810,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
808 | // script engine to run the next event. | 810 | // script engine to run the next event. |
809 | lock (EventQueue) | 811 | lock (EventQueue) |
810 | { | 812 | { |
813 | EventsProcessed++; | ||
814 | |||
811 | if (EventQueue.Count > 0 && Running && !ShuttingDown) | 815 | if (EventQueue.Count > 0 && Running && !ShuttingDown) |
812 | { | 816 | { |
813 | m_CurrentWorkItem = Engine.QueueEventHandler(this); | 817 | m_CurrentWorkItem = Engine.QueueEventHandler(this); |