From 7db38a351c19341e7332dc95cdab5db84ef48226 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Tue, 15 Nov 2011 21:49:13 +0000
Subject: Add number of milliseconds since last update to "show threads"
---
OpenSim/Framework/Watchdog.cs | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
(limited to 'OpenSim/Framework/Watchdog.cs')
diff --git a/OpenSim/Framework/Watchdog.cs b/OpenSim/Framework/Watchdog.cs
index 8e82f5a..0ee0c5b 100644
--- a/OpenSim/Framework/Watchdog.cs
+++ b/OpenSim/Framework/Watchdog.cs
@@ -48,6 +48,15 @@ namespace OpenSim.Framework
public class ThreadWatchdogInfo
{
public Thread Thread { get; private set; }
+
+ ///
+ /// Approximate tick when this thread was started.
+ ///
+ public int StartTick { get; private set; }
+
+ ///
+ /// Last time this heartbeat update was invoked
+ ///
public int LastTick { get; set; }
///
@@ -64,7 +73,8 @@ namespace OpenSim.Framework
{
Thread = thread;
Timeout = timeout;
- LastTick = Environment.TickCount & Int32.MaxValue;
+ StartTick = Environment.TickCount & Int32.MaxValue;
+ LastTick = StartTick;
}
}
--
cgit v1.1