summaryrefslogtreecommitdiffstats
path: root/chrome/common/logging_chrome.cc
diff options
context:
space:
mode:
authorrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-08 03:17:37 +0000
committerrtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-08 03:17:37 +0000
commitb6994152db76d90ec6ecca19a71532acbf39bb96 (patch)
tree45b270b788a09f34056c680be6e3161669119d5b /chrome/common/logging_chrome.cc
parenta981fd612cd68909d4758116dc5a4d8b242cf41e (diff)
downloadchromium_src-b6994152db76d90ec6ecca19a71532acbf39bb96.zip
chromium_src-b6994152db76d90ec6ecca19a71532acbf39bb96.tar.gz
chromium_src-b6994152db76d90ec6ecca19a71532acbf39bb96.tar.bz2
Startup hang - Dump the call stacks of all threads if
ThreadWatcherdoesn't start watching all threads in 5 mins. In Debug mode, it doesa DCHECK and in release mode it dumps the callstack on windows, butdoesn't crash the browser. TODO: need to implement code to get stack traces on other platforms. This is a partial fix to chromium-os:20487. BUG=97997, chromium-os:20487 Test=ThreadWatcher and startup tests R=jar Review URL: http://codereview.chromium.org/8041003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104644 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/logging_chrome.cc')
-rw-r--r--chrome/common/logging_chrome.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/common/logging_chrome.cc b/chrome/common/logging_chrome.cc
index 8c21213..0b7f726 100644
--- a/chrome/common/logging_chrome.cc
+++ b/chrome/common/logging_chrome.cc
@@ -449,4 +449,14 @@ size_t GetFatalAssertions(AssertionList* assertions) {
return assertion_count;
}
+
+void DumpWithoutCrashing() {
+#if defined(OS_WIN)
+ std::string str;
+ DumpProcessAssertHandler(str);
+#else
+ NOTIMPLEMENTED();
+#endif // OS_WIN
+}
+
} // namespace logging