Add "debug comms status" command to show current debug comms settings

TeleportWork
Justin Clark-Casey (justincc) 2013-08-05 23:49:33 +01:00
parent 9bcf072795
commit 4581bdd929
1 changed files with 11 additions and 0 deletions

View File

@ -262,6 +262,12 @@ namespace OpenSim.Framework.Servers
"Set comms parameters. For debug purposes.", "Set comms parameters. For debug purposes.",
HandleDebugCommsSet); HandleDebugCommsSet);
m_console.Commands.AddCommand (
"Debug", false, "debug comms status",
"debug comms status",
"Show current debug comms parameters.",
HandleDebugCommsStatus);
m_console.Commands.AddCommand ( m_console.Commands.AddCommand (
"Debug", false, "debug threadpool set", "Debug", false, "debug threadpool set",
"debug threadpool set worker|iocp min|max <n>", "debug threadpool set worker|iocp min|max <n>",
@ -302,6 +308,11 @@ namespace OpenSim.Framework.Servers
m_serverStatsCollector.Start(); m_serverStatsCollector.Start();
} }
private void HandleDebugCommsStatus(string module, string[] args)
{
Notice("serialosdreq is {0}", WebUtil.SerializeOSDRequestsPerEndpoint);
}
private void HandleDebugCommsSet(string module, string[] args) private void HandleDebugCommsSet(string module, string[] args)
{ {
if (args.Length != 5) if (args.Length != 5)