aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2012-07-12 00:16:19 +0200
committerMelanie2012-07-12 00:16:19 +0200
commitc66367e6194f22da86a3bf972ec107212e732d80 (patch)
tree1baca77553e23c884cbb976105e0c6ef4db02dbc
parentPlace instrumentation in the proper place. This needs reverting, too! (diff)
downloadopensim-SC_OLD-c66367e6194f22da86a3bf972ec107212e732d80.zip
opensim-SC_OLD-c66367e6194f22da86a3bf972ec107212e732d80.tar.gz
opensim-SC_OLD-c66367e6194f22da86a3bf972ec107212e732d80.tar.bz2
opensim-SC_OLD-c66367e6194f22da86a3bf972ec107212e732d80.tar.xz
Add "gc collect" console command for debugging memleaks
-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 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}