diff options
author | UbitUmarov | 2015-10-21 18:34:06 +0100 |
---|---|---|
committer | UbitUmarov | 2015-10-21 18:34:06 +0100 |
commit | e464bf5d828edf9d48f7922730f2a106baf4ea35 (patch) | |
tree | 19d9e05ff5e9fef92e65b99bbddbfebf407a1ade /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | update ubOde hashspaces levels (diff) | |
download | opensim-SC-e464bf5d828edf9d48f7922730f2a106baf4ea35.zip opensim-SC-e464bf5d828edf9d48f7922730f2a106baf4ea35.tar.gz opensim-SC-e464bf5d828edf9d48f7922730f2a106baf4ea35.tar.bz2 opensim-SC-e464bf5d828edf9d48f7922730f2a106baf4ea35.tar.xz |
recover scripts execution time stat i lost on previus changes. Behing async, this will not add with other time stats giving total frame time, as happens on other simulators. But its a good diag stat.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rwxr-xr-x | OpenSim/Region/Framework/Scenes/Scene.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index e47aa9c..c61a23d 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1904,14 +1904,17 @@ namespace OpenSim.Region.Framework.Scenes | |||
1904 | } | 1904 | } |
1905 | 1905 | ||
1906 | /// <summary> | 1906 | /// <summary> |
1907 | /// Returns the total execution time of all the scripts in the region since the last frame | 1907 | /// Returns the total execution time of all the scripts in the region since the last call |
1908 | /// (in milliseconds), and clears the value in preparation for the next frame. | 1908 | /// (in milliseconds), and clears the value in preparation for the next call. |
1909 | /// </summary> | 1909 | /// </summary> |
1910 | /// <returns>Time in milliseconds</returns> | 1910 | /// <returns>Time in milliseconds</returns> |
1911 | private long GetAndResetScriptExecutionTime() | 1911 | |
1912 | // Warning: this is now called from StatsReporter, and can't be shared | ||
1913 | |||
1914 | public long GetAndResetScriptExecutionTime() | ||
1912 | { | 1915 | { |
1913 | long ticks = Interlocked.Exchange(ref m_scriptExecutionTime, 0); | 1916 | long ticks = Interlocked.Exchange(ref m_scriptExecutionTime, 0); |
1914 | return (ticks * 1000) / Stopwatch.Frequency; | 1917 | return (ticks * 1000L) / Stopwatch.Frequency; |
1915 | } | 1918 | } |
1916 | 1919 | ||
1917 | public void AddGroupTarget(SceneObjectGroup grp) | 1920 | public void AddGroupTarget(SceneObjectGroup grp) |