aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-03-06 19:05:32 +0000
committerJustin Clark-Casey (justincc)2012-03-06 19:05:32 +0000
commit0f4cdc0c5bb750ec4ab7b100dc82d3ff08c9e427 (patch)
treebd8fe31cdfcb0da2d2e81a7d82e39e2eab81e5e7 /OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
parentFix TestSyntaxError() and TestSyntaxErrorDeclaringVariableInForLoop() (diff)
downloadopensim-SC_OLD-0f4cdc0c5bb750ec4ab7b100dc82d3ff08c9e427.zip
opensim-SC_OLD-0f4cdc0c5bb750ec4ab7b100dc82d3ff08c9e427.tar.gz
opensim-SC_OLD-0f4cdc0c5bb750ec4ab7b100dc82d3ff08c9e427.tar.bz2
opensim-SC_OLD-0f4cdc0c5bb750ec4ab7b100dc82d3ff08c9e427.tar.xz
Explictly close down the StatsReporter so that we can shutdown its timer
This is another step necessary for the scene to be garbage collected between performance tests
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/SimStatsReporter.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
index 35cd025..210f48d 100644
--- a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
+++ b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
@@ -185,6 +185,12 @@ namespace OpenSim.Region.Framework.Scenes
185 OnSendStatsResult += StatsManager.SimExtraStats.ReceiveClassicSimStatsPacket; 185 OnSendStatsResult += StatsManager.SimExtraStats.ReceiveClassicSimStatsPacket;
186 } 186 }
187 187
188 public void Close()
189 {
190 m_report.Elapsed -= statsHeartBeat;
191 m_report.Close();
192 }
193
188 public void SetUpdateMS(int ms) 194 public void SetUpdateMS(int ms)
189 { 195 {
190 statsUpdatesEveryMS = ms; 196 statsUpdatesEveryMS = ms;