aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-08-01 20:21:49 +0000
committerJustin Clarke Casey2008-08-01 20:21:49 +0000
commit89898a2a6ab103804d48c8fd3fa652372bb2e683 (patch)
treec4abd8883cc8bec10d6673568ba93aa027a4be55 /OpenSim/Framework
parent* start tracking viewer session threads (diff)
downloadopensim-SC_OLD-89898a2a6ab103804d48c8fd3fa652372bb2e683.zip
opensim-SC_OLD-89898a2a6ab103804d48c8fd3fa652372bb2e683.tar.gz
opensim-SC_OLD-89898a2a6ab103804d48c8fd3fa652372bb2e683.tar.bz2
opensim-SC_OLD-89898a2a6ab103804d48c8fd3fa652372bb2e683.tar.xz
* minor: get rid of count number from 'show threads' display since they all have IDs
Diffstat (limited to 'OpenSim/Framework')
-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;