1// Copyright (c) 2012 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "base/base_switches.h" 6 7namespace switches { 8 9// Disables the crash reporting. 10const char kDisableBreakpad[] = "disable-breakpad"; 11 12// Indicates that crash reporting should be enabled. On platforms where helper 13// processes cannot access to files needed to make this decision, this flag is 14// generated internally. 15const char kEnableCrashReporter[] = "enable-crash-reporter"; 16 17// Generates full memory crash dump. 18const char kFullMemoryCrashReport[] = "full-memory-crash-report"; 19 20// Force low-end device when set to 1; 21// Auto-detect low-end device when set to 2; 22// Force non-low-end device when set to other values or empty; 23const char kLowEndDeviceMode[] = "low-end-device-mode"; 24 25// Suppresses all error dialogs when present. 26const char kNoErrorDialogs[] = "noerrdialogs"; 27 28// When running certain tests that spawn child processes, this switch indicates 29// to the test framework that the current process is a child process. 30const char kTestChildProcess[] = "test-child-process"; 31 32// Gives the default maximal active V-logging level; 0 is the default. 33// Normally positive values are used for V-logging levels. 34const char kV[] = "v"; 35 36// Gives the per-module maximal V-logging levels to override the value 37// given by --v. E.g. "my_module=2,foo*=3" would change the logging 38// level for all code in source files "my_module.*" and "foo*.*" 39// ("-inl" suffixes are also disregarded for this matching). 40// 41// Any pattern containing a forward or backward slash will be tested 42// against the whole pathname and not just the module. E.g., 43// "*/foo/bar/*=2" would change the logging level for all code in 44// source files under a "foo/bar" directory. 45const char kVModule[] = "vmodule"; 46 47// Will wait for 60 seconds for a debugger to come to attach to the process. 48const char kWaitForDebugger[] = "wait-for-debugger"; 49 50// Sends a pretty-printed version of tracing info to the console. 51const char kTraceToConsole[] = "trace-to-console"; 52 53// Sends trace events from these categories to a file. 54// --trace-to-file on its own sends to default categories. 55const char kTraceToFile[] = "trace-to-file"; 56 57// Specifies the file name for --trace-to-file. If unspecified, it will 58// go to a default file name. 59const char kTraceToFileName[] = "trace-to-file-name"; 60 61// Configure whether chrome://profiler will contain timing information. This 62// option is enabled by default. A value of "0" will disable profiler timing, 63// while all other values will enable it. 64const char kProfilerTiming[] = "profiler-timing"; 65// Value of the --profiler-timing flag that will disable timing information for 66// chrome://profiler. 67const char kProfilerTimingDisabledValue[] = "0"; 68 69#if defined(OS_POSIX) 70// Used for turning on Breakpad crash reporting in a debug environment where 71// crash reporting is typically compiled but disabled. 72const char kEnableCrashReporterForTesting[] = 73 "enable-crash-reporter-for-testing"; 74#endif 75 76} // namespace switches 77