summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-23 07:27:02 +0000
committerrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-23 07:27:02 +0000
commit3617ea94a4f7e711880fe95529d6cad26a98b86f (patch)
tree40a2d4bacf1b9260db1dcc98de9b70dd9a54df96 /content
parent6b7fcb4cc083332fc1708a8d6075fa3a06096910 (diff)
downloadchromium_src-3617ea94a4f7e711880fe95529d6cad26a98b86f.zip
chromium_src-3617ea94a4f7e711880fe95529d6cad26a98b86f.tar.gz
chromium_src-3617ea94a4f7e711880fe95529d6cad26a98b86f.tar.bz2
First cut at a WATCHDOG thread that monitors threads for their
responsiveness by sending a ping message to them. Watched Threads respond by sending a pong message to WATCHDOG thread. WACTHDOG thread collects statistics for response time. BUG=71378 TEST=browser_thread_unit_test and thread_watcher_unittest. Starting and stopping of browser. Review URL: http://codereview.chromium.org/6392018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75723 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/browser_thread.cc1
-rw-r--r--content/browser/browser_thread.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/content/browser/browser_thread.cc b/content/browser/browser_thread.cc
index c0e4355..4c6627b 100644
--- a/content/browser/browser_thread.cc
+++ b/content/browser/browser_thread.cc
@@ -11,6 +11,7 @@
// Friendly names for the well-known threads.
static const char* browser_thread_names[BrowserThread::ID_COUNT] = {
"", // UI (name assembled in browser_main.cc).
+ "Chrome_WatchdogThread", // WATCHDOG
"Chrome_DBThread", // DB
"Chrome_WebKitThread", // WEBKIT
"Chrome_FileThread", // FILE
diff --git a/content/browser/browser_thread.h b/content/browser/browser_thread.h
index d5e4473..b0ed765 100644
--- a/content/browser/browser_thread.h
+++ b/content/browser/browser_thread.h
@@ -43,6 +43,9 @@ class BrowserThread : public base::Thread {
// The main thread in the browser.
UI,
+ // This is the thread that watches all browser threads.
+ WATCHDOG,
+
// This is the thread that interacts with the database.
DB,