aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application
diff options
context:
space:
mode:
authorTedd Hansen2008-02-20 21:09:23 +0000
committerTedd Hansen2008-02-20 21:09:23 +0000
commit5f7a02fce910674ad875d37ba02730fbf9ecbebb (patch)
tree2c73c996d8acfbb51a544a83ba4852e820778885 /OpenSim/Region/Application
parent* Only count download requests for assets which are not already waiting for d... (diff)
downloadopensim-SC_OLD-5f7a02fce910674ad875d37ba02730fbf9ecbebb.zip
opensim-SC_OLD-5f7a02fce910674ad875d37ba02730fbf9ecbebb.tar.gz
opensim-SC_OLD-5f7a02fce910674ad875d37ba02730fbf9ecbebb.tar.bz2
opensim-SC_OLD-5f7a02fce910674ad875d37ba02730fbf9ecbebb.tar.xz
Treads command lists threads, but not thread name (yet)
Diffstat (limited to 'OpenSim/Region/Application')
-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)