diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 6a120c1..48aca98 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -831,6 +831,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
831 | StatsReporter = new SimStatsReporter(this); | 831 | StatsReporter = new SimStatsReporter(this); |
832 | StatsReporter.OnSendStatsResult += SendSimStatsPackets; | 832 | StatsReporter.OnSendStatsResult += SendSimStatsPackets; |
833 | StatsReporter.OnStatsIncorrect += m_sceneGraph.RecalculateStats; | 833 | StatsReporter.OnStatsIncorrect += m_sceneGraph.RecalculateStats; |
834 | |||
835 | MainConsole.Instance.Commands.AddCommand("scene", false, "gc collect", "gc collect", "gc collect", "Cause the garbage collector to make a single pass", HandleGcCollect); | ||
834 | } | 836 | } |
835 | 837 | ||
836 | /// <summary> | 838 | /// <summary> |
@@ -5637,5 +5639,10 @@ Environment.Exit(1); | |||
5637 | } | 5639 | } |
5638 | } | 5640 | } |
5639 | } | 5641 | } |
5642 | |||
5643 | private void HandleGcCollect(string module, string[] args) | ||
5644 | { | ||
5645 | GC.Collect(); | ||
5646 | } | ||
5640 | } | 5647 | } |
5641 | } | 5648 | } |