diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Application/OpenSimMain.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 7461006..d47e058 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs | |||
@@ -28,6 +28,7 @@ | |||
28 | 28 | ||
29 | using System; | 29 | using System; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Diagnostics; | ||
31 | using System.IO; | 32 | using System.IO; |
32 | using System.Text; | 33 | using System.Text; |
33 | using System.Threading; | 34 | using System.Threading; |
@@ -744,6 +745,7 @@ namespace OpenSim | |||
744 | m_console.Notice("show users - show info about connected users."); | 745 | m_console.Notice("show users - show info about connected users."); |
745 | m_console.Notice("show modules - shows info about loaded modules."); | 746 | m_console.Notice("show modules - shows info about loaded modules."); |
746 | m_console.Notice("show stats - statistical information for this server not displayed in the client"); | 747 | m_console.Notice("show stats - statistical information for this server not displayed in the client"); |
748 | m_console.Notice("threads - list threads"); | ||
747 | m_console.Notice("shutdown - disconnect all clients and shutdown."); | 749 | m_console.Notice("shutdown - disconnect all clients and shutdown."); |
748 | m_console.Notice("config set section field value - set a config value"); | 750 | m_console.Notice("config set section field value - set a config value"); |
749 | m_console.Notice("config get section field - get a config value"); | 751 | m_console.Notice("config get section field - get a config value"); |
@@ -751,6 +753,17 @@ namespace OpenSim | |||
751 | m_console.Notice("terrain help - show help for terrain commands."); | 753 | m_console.Notice("terrain help - show help for terrain commands."); |
752 | break; | 754 | break; |
753 | 755 | ||
756 | case "threads": | ||
757 | if (cmdparams.Length > 0) | ||
758 | { | ||
759 | int c = 0; | ||
760 | foreach (Thread t in Process.GetCurrentProcess().Threads) | ||
761 | { | ||
762 | c++; | ||
763 | m_console.Notice("THREAD", "Thread " + c + ": " + t.Name + " (" + t.ToString() + ")"); | ||
764 | } | ||
765 | } | ||
766 | break; | ||
754 | case "save-xml": | 767 | case "save-xml": |
755 | if (cmdparams.Length > 0) | 768 | if (cmdparams.Length > 0) |
756 | { | 769 | { |