From e8df0f1b4c3194c7f5c1a354b5d5d2f67d6a250c Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Wed, 5 Dec 2012 22:33:28 +0000
Subject: Add IScriptInstance.EventsProcessed stat so that we can record this
information and display in "show scripts" for debug purposes
---
OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs | 5 +++++
1 file changed, 5 insertions(+)
(limited to 'OpenSim/Region/ScriptEngine/Interfaces')
diff --git a/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs b/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
index b04f6b6..f3abd96 100644
--- a/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
@@ -114,6 +114,11 @@ namespace OpenSim.Region.ScriptEngine.Interfaces
UUID AssetID { get; }
Queue EventQueue { get; }
+ ///
+ /// Number of events processed by this script instance.
+ ///
+ long EventsProcessed { get; }
+
void ClearQueue();
int StartParam { get; set; }
--
cgit v1.1
From 5ba99cbf554d965a6b11114a602c5317ca8f5ebd Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Wed, 5 Dec 2012 23:33:48 +0000
Subject: Add IScriptInstance.EventsQueued to match EventsProcessed instead of
asking callers to lock and directly inspect the EventQueue
---
OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs | 5 +++++
1 file changed, 5 insertions(+)
(limited to 'OpenSim/Region/ScriptEngine/Interfaces')
diff --git a/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs b/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
index f3abd96..0cef550 100644
--- a/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
@@ -115,6 +115,11 @@ namespace OpenSim.Region.ScriptEngine.Interfaces
Queue EventQueue { get; }
///
+ /// Number of events queued for processing.
+ ///
+ long EventsQueued { get; }
+
+ ///
/// Number of events processed by this script instance.
///
long EventsProcessed { get; }
--
cgit v1.1