Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 7134007: Added command line switches "crash-on-hang-threads" and "crash-on-hang-seconds" (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 9
10 namespace switches { 10 namespace switches {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 // Causes the browser process to inspect loaded and registered DLLs for 144 // Causes the browser process to inspect loaded and registered DLLs for
145 // known conflicts and warn the user. 145 // known conflicts and warn the user.
146 const char kConflictingModulesCheck[] = "conflicting-modules-check"; 146 const char kConflictingModulesCheck[] = "conflicting-modules-check";
147 147
148 // The Country we should use. This is normally obtained from the operating 148 // The Country we should use. This is normally obtained from the operating
149 // system during first run and cached in the preferences afterwards. This is a 149 // system during first run and cached in the preferences afterwards. This is a
150 // string value, the 2 letter code from ISO 3166-1. 150 // string value, the 2 letter code from ISO 3166-1.
151 const char kCountry[] = "country"; 151 const char kCountry[] = "country";
152 152
153 // Causes the browser process to crash if browser threads are not responding for
154 // the given number of seconds.
155 const char kCrashOnHangSeconds[] = "crash-on-hang-seconds";
156
157 // Comma separated list of BrowserThreads that cause browser process to crash if
158 // the given browser thread is not responsive. UI,IO,DB,FILE,CACHE are the list
159 // of BrowserThreads that are supported.
160 //
161 // For example:
162 // --crash-on-hang-threads=UI,IO --> Crash the browser if UI or IO thread is
163 // not responsive.
164 const char kCrashOnHangThreads[] = "crash-on-hang-threads";
165
166 // Causes the browser process to crash if the number of browser threads that are
167 // responding is equal to the given number.
168 //
169 // For example:
170 // --crash-on-live=1 --> Crash if only one thread is responsive and all other
171 // threads are not responsive.
172 const char kCrashOnLive[] = "crash-on-live";
173
153 // Path to the inspector files on disk (allows reloading of devtool files 174 // Path to the inspector files on disk (allows reloading of devtool files
154 // without having to restart the browser). 175 // without having to restart the browser).
155 const char kDebugDevToolsFrontend[] = "debug-devtools-frontend"; 176 const char kDebugDevToolsFrontend[] = "debug-devtools-frontend";
156 177
157 // Enables a frame context menu item that toggles the frame in and out of glass 178 // Enables a frame context menu item that toggles the frame in and out of glass
158 // mode (Windows Vista and up only). 179 // mode (Windows Vista and up only).
159 const char kDebugEnableFrameToggle[] = "debug-enable-frame-toggle"; 180 const char kDebugEnableFrameToggle[] = "debug-enable-frame-toggle";
160 181
161 // Enables support to debug printing subsystem. 182 // Enables support to debug printing subsystem.
162 const char kDebugPrint[] = "debug-print"; 183 const char kDebugPrint[] = "debug-print";
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 1172
1152 // ----------------------------------------------------------------------------- 1173 // -----------------------------------------------------------------------------
1153 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1174 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1154 // 1175 //
1155 // You were going to just dump your switches here, weren't you? Instead, 1176 // You were going to just dump your switches here, weren't you? Instead,
1156 // please put them in alphabetical order above, or in order inside the 1177 // please put them in alphabetical order above, or in order inside the
1157 // appropriate ifdef at the bottom. The order should match the header. 1178 // appropriate ifdef at the bottom. The order should match the header.
1158 // ----------------------------------------------------------------------------- 1179 // -----------------------------------------------------------------------------
1159 1180
1160 } // namespace switches 1181 } // namespace switches
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698