aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Servers/BaseOpenSimServer.cs13
1 files changed, 1 insertions, 12 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
index 7a8da52..376d945 100644
--- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs
+++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
@@ -199,15 +199,6 @@ namespace OpenSim.Framework.Servers
199 break; 199 break;
200 200
201 case "threads": 201 case "threads":
202// m_console.Notice("THREAD", Process.GetCurrentProcess().Threads.Count + " threads running:");
203// int _tc = 0;
204
205// foreach (ProcessThread pt in Process.GetCurrentProcess().Threads)
206// {
207// _tc++;
208// m_console.Notice("THREAD", _tc + ": ID: " + pt.Id + ", Started: " + pt.StartTime.ToString() + ", CPU time: " + pt.TotalProcessorTime + ", Pri: " + pt.BasePriority.ToString() + ", State: " + pt.ThreadState.ToString());
209// }
210
211 List<Thread> threads = ThreadTracker.GetThreads(); 202 List<Thread> threads = ThreadTracker.GetThreads();
212 if (threads == null) 203 if (threads == null)
213 { 204 {
@@ -215,12 +206,10 @@ namespace OpenSim.Framework.Servers
215 } 206 }
216 else 207 else
217 { 208 {
218 int tc = 0;
219 Notice(threads.Count + " threads are being tracked:"); 209 Notice(threads.Count + " threads are being tracked:");
220 foreach (Thread t in threads) 210 foreach (Thread t in threads)
221 { 211 {
222 tc++; 212 Notice("ID: " + t.ManagedThreadId.ToString() + ", Name: " + t.Name + ", Alive: " + t.IsAlive.ToString() + ", Pri: " + t.Priority.ToString() + ", State: " + t.ThreadState.ToString());
223 Notice(tc + ": ID: " + t.ManagedThreadId.ToString() + ", Name: " + t.Name + ", Alive: " + t.IsAlive.ToString() + ", Pri: " + t.Priority.ToString() + ", State: " + t.ThreadState.ToString());
224 } 213 }
225 } 214 }
226 break; 215 break;