diff options
author | Oren Hurvitz | 2015-07-17 16:27:40 +0300 |
---|---|---|
committer | Oren Hurvitz | 2015-08-11 07:35:39 +0100 |
commit | 4c6fb9fb64f554e22d33c30729b4922cdfd185e5 (patch) | |
tree | 9d1abb05bc7598727c667d2619fac2d95214548b /OpenSim/Region/ScriptEngine | |
parent | Removed unused code that checked wait_timeout in MySQLEstateData (diff) | |
download | opensim-SC_OLD-4c6fb9fb64f554e22d33c30729b4922cdfd185e5.zip opensim-SC_OLD-4c6fb9fb64f554e22d33c30729b4922cdfd185e5.tar.gz opensim-SC_OLD-4c6fb9fb64f554e22d33c30729b4922cdfd185e5.tar.bz2 opensim-SC_OLD-4c6fb9fb64f554e22d33c30729b4922cdfd185e5.tar.xz |
Log scripts that have processed many events: this is probably an indication of a problem
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index d78738f..0055322 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |||
@@ -932,6 +932,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
932 | { | 932 | { |
933 | EventsProcessed++; | 933 | EventsProcessed++; |
934 | 934 | ||
935 | if ((EventsProcessed == 1000) || (EventsProcessed == 10000) || ((EventsProcessed % 100000) == 0)) | ||
936 | { | ||
937 | m_log.DebugFormat("[SCRIPT INSTANCE]: Script \"{0}\" (Object \"{1}\" {2} @ {3}.{4}, Item ID {5}, Asset {6}) in event {7}: processed {8:n0} script events", | ||
938 | ScriptTask.Name, | ||
939 | Part.ParentGroup.Name, Part.ParentGroup.UUID, Part.ParentGroup.AbsolutePosition, Part.ParentGroup.Scene.Name, | ||
940 | ScriptTask.ItemID, ScriptTask.AssetID, data.EventName, EventsProcessed); | ||
941 | } | ||
942 | |||
935 | if (EventQueue.Count > 0 && Running && !ShuttingDown) | 943 | if (EventQueue.Count > 0 && Running && !ShuttingDown) |
936 | { | 944 | { |
937 | m_CurrentWorkItem = Engine.QueueEventHandler(this); | 945 | m_CurrentWorkItem = Engine.QueueEventHandler(this); |