Make "force gc" console command available across all servers

This commit is contained in:
Justin Clark-Casey (justincc)
2012-11-23 04:27:04 +00:00
parent 4b46a0d536
commit e0a3e01850
2 changed files with 12 additions and 11 deletions

View File

@@ -209,6 +209,18 @@ namespace OpenSim.Framework.Servers
"General", false, "command-script",
"command-script <script>",
"Run a command script from file", HandleScript);
m_console.Commands.AddCommand(
"General", false, "force gc",
"force gc",
"Manually invoke runtime garbage collection. For debugging purposes",
HandleForceGc);
}
private void HandleForceGc(string module, string[] args)
{
Notice("Manually invoking runtime garbage collection");
GC.Collect();
}
public virtual void HandleShow(string module, string[] cmd)