aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 19f319c..f437bc8 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -879,6 +879,8 @@ namespace OpenSim.Region.Framework.Scenes
879 StatsReporter = new SimStatsReporter(this); 879 StatsReporter = new SimStatsReporter(this);
880 StatsReporter.OnSendStatsResult += SendSimStatsPackets; 880 StatsReporter.OnSendStatsResult += SendSimStatsPackets;
881 StatsReporter.OnStatsIncorrect += m_sceneGraph.RecalculateStats; 881 StatsReporter.OnStatsIncorrect += m_sceneGraph.RecalculateStats;
882
883 MainConsole.Instance.Commands.AddCommand("scene", false, "gc collect", "gc collect", "gc collect", "Cause the garbage collector to make a single pass", HandleGcCollect);
882 } 884 }
883 885
884 public Scene(RegionInfo regInfo) : base(regInfo) 886 public Scene(RegionInfo regInfo) : base(regInfo)
@@ -5773,5 +5775,10 @@ Environment.Exit(1);
5773 m_SpawnPoint = 1; 5775 m_SpawnPoint = 1;
5774 return m_SpawnPoint - 1; 5776 return m_SpawnPoint - 1;
5775 } 5777 }
5778
5779 private void HandleGcCollect(string module, string[] args)
5780 {
5781 GC.Collect();
5782 }
5776 } 5783 }
5777} 5784}