aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Interfaces
diff options
context:
space:
mode:
authorOren Hurvitz2015-07-27 12:16:21 +0300
committerOren Hurvitz2015-08-11 08:42:26 +0100
commita3bed1fbcbcbe19681aa57733f260ef647a33d8e (patch)
tree2092c169cd80ed3db70f1b03d88406f48dc20f44 /OpenSim/Region/ScriptEngine/Interfaces
parentImproved calculation of Script Execution TimeStarted (diff)
downloadopensim-SC_OLD-a3bed1fbcbcbe19681aa57733f260ef647a33d8e.zip
opensim-SC_OLD-a3bed1fbcbcbe19681aa57733f260ef647a33d8e.tar.gz
opensim-SC_OLD-a3bed1fbcbcbe19681aa57733f260ef647a33d8e.tar.bz2
opensim-SC_OLD-a3bed1fbcbcbe19681aa57733f260ef647a33d8e.tar.xz
Report "Script Execution Time" as the time spent executing the script in the last 30 seconds. Use a sliding window to calculate this.
Notes: - This metric provides a better indication of which scripts are taking up a lot of CPU (and therefore should be optimized). - Previously the execution time was reset to 0 in every new measurement period, causing the reported time to fluctuate for no reason. This has been fixed by using a sliding window.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Interfaces')
-rw-r--r--OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs9
1 files changed, 2 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs b/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
index fa2ceef..f695eba 100644
--- a/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Interfaces/IScriptInstance.cs
@@ -109,14 +109,9 @@ namespace OpenSim.Region.ScriptEngine.Interfaces
109 DateTime TimeStarted { get; } 109 DateTime TimeStarted { get; }
110 110
111 /// <summary> 111 /// <summary>
112 /// Tick the last measurement period was started. 112 /// Collects information about how long the script was executed.
113 /// </summary> 113 /// </summary>
114 long MeasurementPeriodTickStart { get; } 114 MetricsCollectorTime ExecutionTime { get; }
115
116 /// <summary>
117 /// Ticks spent executing in the last measurement period.
118 /// </summary>
119 long MeasurementPeriodExecutionTime { get; }
120 115
121 /// <summary> 116 /// <summary>
122 /// Scene part in which this script instance is contained. 117 /// Scene part in which this script instance is contained.