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/SimStatsReporter.cs | |
parent | update ubOde hashspaces levels (diff) | |
download | opensim-SC_OLD-e464bf5d828edf9d48f7922730f2a106baf4ea35.zip opensim-SC_OLD-e464bf5d828edf9d48f7922730f2a106baf4ea35.tar.gz opensim-SC_OLD-e464bf5d828edf9d48f7922730f2a106baf4ea35.tar.bz2 opensim-SC_OLD-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/SimStatsReporter.cs')
-rwxr-xr-x | OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs index 7f6a1cd..5fe0551 100755 --- a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs +++ b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | |||
@@ -412,6 +412,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
412 | if (m_otherMS < 0) | 412 | if (m_otherMS < 0) |
413 | m_otherMS = 0; | 413 | m_otherMS = 0; |
414 | 414 | ||
415 | float scriptTimeMS = m_scene.GetAndResetScriptExecutionTime(); | ||
416 | |||
415 | for (int i = 0; i < m_statisticViewerArraySize; i++) | 417 | for (int i = 0; i < m_statisticViewerArraySize; i++) |
416 | { | 418 | { |
417 | sb[i] = new SimStatsPacket.StatBlock(); | 419 | sb[i] = new SimStatsPacket.StatBlock(); |
@@ -533,7 +535,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
533 | sb[36].StatValue = 0; | 535 | sb[36].StatValue = 0; |
534 | 536 | ||
535 | sb[37].StatID = (uint)Stats.ScriptMS; | 537 | sb[37].StatID = (uint)Stats.ScriptMS; |
536 | sb[37].StatValue = 0; | 538 | sb[37].StatValue = scriptTimeMS * perframefactor; |
537 | 539 | ||
538 | 540 | ||
539 | for (int i = 0; i < m_statisticViewerArraySize; i++) | 541 | for (int i = 0; i < m_statisticViewerArraySize; i++) |