aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers/BaseOpenSimServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Servers/BaseOpenSimServer.cs')
-rw-r--r--OpenSim/Framework/Servers/BaseOpenSimServer.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
index 3d20080..65d4d32 100644
--- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs
+++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
@@ -247,13 +247,17 @@ namespace OpenSim.Framework.Servers
247 Watchdog.ThreadWatchdogInfo[] threads = Watchdog.GetThreads(); 247 Watchdog.ThreadWatchdogInfo[] threads = Watchdog.GetThreads();
248 248
249 sb.Append(threads.Length + " threads are being tracked:" + Environment.NewLine); 249 sb.Append(threads.Length + " threads are being tracked:" + Environment.NewLine);
250
251 int timeNow = Util.EnvironmentTickCount();
252
250 foreach (Watchdog.ThreadWatchdogInfo twi in threads) 253 foreach (Watchdog.ThreadWatchdogInfo twi in threads)
251 { 254 {
252 Thread t = twi.Thread; 255 Thread t = twi.Thread;
253 256
254 sb.Append( 257 sb.AppendFormat(
255 "ID: " + t.ManagedThreadId + ", Name: " + t.Name + ", TimeRunning: " 258 "ID: {0}, Name: {1}, Last Update: {2} ms ago, Pri: {3}, State: {4}",
256 + "Pri: " + t.Priority + ", State: " + t.ThreadState); 259 t.ManagedThreadId, t.Name, timeNow - twi.LastTick, t.Priority, t.ThreadState);
260
257 sb.Append(Environment.NewLine); 261 sb.Append(Environment.NewLine);
258 } 262 }
259 263