diff options
Diffstat (limited to 'OpenSim/Framework/Servers/ServerBase.cs')
-rw-r--r-- | OpenSim/Framework/Servers/ServerBase.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Framework/Servers/ServerBase.cs b/OpenSim/Framework/Servers/ServerBase.cs index 431dc9e..b8bc27e 100644 --- a/OpenSim/Framework/Servers/ServerBase.cs +++ b/OpenSim/Framework/Servers/ServerBase.cs | |||
@@ -209,6 +209,18 @@ namespace OpenSim.Framework.Servers | |||
209 | "General", false, "command-script", | 209 | "General", false, "command-script", |
210 | "command-script <script>", | 210 | "command-script <script>", |
211 | "Run a command script from file", HandleScript); | 211 | "Run a command script from file", HandleScript); |
212 | |||
213 | m_console.Commands.AddCommand( | ||
214 | "General", false, "force gc", | ||
215 | "force gc", | ||
216 | "Manually invoke runtime garbage collection. For debugging purposes", | ||
217 | HandleForceGc); | ||
218 | } | ||
219 | |||
220 | private void HandleForceGc(string module, string[] args) | ||
221 | { | ||
222 | Notice("Manually invoking runtime garbage collection"); | ||
223 | GC.Collect(); | ||
212 | } | 224 | } |
213 | 225 | ||
214 | public virtual void HandleShow(string module, string[] cmd) | 226 | public virtual void HandleShow(string module, string[] cmd) |