aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs16
1 files changed, 9 insertions, 7 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index d47e058..fc739d9 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -754,15 +754,17 @@ namespace OpenSim
754 break; 754 break;
755 755
756 case "threads": 756 case "threads":
757 if (cmdparams.Length > 0) 757 m_console.Notice("THREAD", Process.GetCurrentProcess().Threads.Count + " threads running:");
758 { 758 int _tc = 0;
759 int c = 0; 759
760 foreach (Thread t in Process.GetCurrentProcess().Threads) 760 foreach (ProcessThread pt in Process.GetCurrentProcess().Threads)
761 { 761 {
762 c++; 762 _tc++;
763 m_console.Notice("THREAD", "Thread " + c + ": " + t.Name + " (" + t.ToString() + ")"); 763 m_console.Notice("THREAD", _tc + ": ID: " + pt.Id + ", Started: " + pt.StartTime.ToString() + ", CPU time: " + pt.TotalProcessorTime + ", Pri: " + pt.BasePriority.ToString() + ", State: " + pt.ThreadState.ToString());
764
764 } 765 }
765 } 766
767
766 break; 768 break;
767 case "save-xml": 769 case "save-xml":
768 if (cmdparams.Length > 0) 770 if (cmdparams.Length > 0)