blob: f5c6eb3f59bb78f81f313436c11e8609efadd8a1 [file] [log] [blame]
tfarina@chromium.orgef21d1d2012-03-13 00:35:12 +09001// Copyright (c) 2012 The Chromium Authors. All rights reserved.
license.botf003cfe2008-08-24 09:55:55 +09002// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
initial.commit3f4a7322008-07-27 06:49:38 +09004
5#include "base/base_switches.h"
avia6a6a682015-12-27 07:15:14 +09006#include "build/build_config.h"
initial.commit3f4a7322008-07-27 06:49:38 +09007
8namespace switches {
9
nsylvain@chromium.org12ec1e82010-08-10 02:32:32 +090010// Disables the crash reporting.
11const char kDisableBreakpad[] = "disable-breakpad";
12
jochen@chromium.org22bb79e2013-10-23 06:19:01 +090013// Indicates that crash reporting should be enabled. On platforms where helper
14// processes cannot access to files needed to make this decision, this flag is
15// generated internally.
16const char kEnableCrashReporter[] = "enable-crash-reporter";
17
ruuda576f92c2015-10-12 21:30:41 +090018// Makes memory allocators keep track of their allocations and context, so a
19// detailed breakdown of memory usage can be presented in chrome://tracing when
20// the memory-infra category is enabled.
21const char kEnableHeapProfiling[] = "enable-heap-profiling";
22
dskiba12405d92016-04-29 04:40:29 +090023// Report native (walk the stack) allocation traces. By default pseudo stacks
24// derived from trace events are reported.
25const char kEnableHeapProfilingModeNative[] = "native";
26
brettw@chromium.org1c8c3be2010-08-18 04:40:11 +090027// Generates full memory crash dump.
28const char kFullMemoryCrashReport[] = "full-memory-crash-report";
29
ssid108428f2014-12-17 01:04:02 +090030// Force low-end device mode when set.
31const char kEnableLowEndDeviceMode[] = "enable-low-end-device-mode";
32
33// Force disabling of low-end device mode when set.
34const char kDisableLowEndDeviceMode[] = "disable-low-end-device-mode";
c.shu@samsung.comda21aff2014-06-27 01:55:27 +090035
blundell6c9e3db2015-09-29 21:33:35 +090036// This option can be used to force field trials when testing changes locally.
37// The argument is a list of name and value pairs, separated by slashes. If a
38// trial name is prefixed with an asterisk, that trial will start activated.
39// For example, the following argument defines two trials, with the second one
40// activated: "GoogleNow/Enable/*MaterialDesignNTP/Default/" This option can
41// also be used by the browser process to send the list of trials to a
42// non-browser process, using the same format. See
43// FieldTrialList::CreateTrialsFromString() in field_trial.h for details.
44const char kForceFieldTrials[] = "force-fieldtrials";
45
brettw@chromium.org1c8c3be2010-08-18 04:40:11 +090046// Suppresses all error dialogs when present.
47const char kNoErrorDialogs[] = "noerrdialogs";
48
brettw@chromium.org1c8c3be2010-08-18 04:40:11 +090049// When running certain tests that spawn child processes, this switch indicates
50// to the test framework that the current process is a child process.
51const char kTestChildProcess[] = "test-child-process";
52
wfh44226382016-03-12 11:09:59 +090053// When running certain tests that spawn child processes, this switch indicates
54// to the test framework that the current process should not initialize ICU to
55// avoid creating any scoped handles too early in startup.
56const char kTestDoNotInitializeIcu[] = "test-do-not-initialize-icu";
57
akalin@chromium.orgf0ee79c2010-09-30 04:26:36 +090058// Gives the default maximal active V-logging level; 0 is the default.
59// Normally positive values are used for V-logging levels.
60const char kV[] = "v";
61
62// Gives the per-module maximal V-logging levels to override the value
63// given by --v. E.g. "my_module=2,foo*=3" would change the logging
64// level for all code in source files "my_module.*" and "foo*.*"
65// ("-inl" suffixes are also disregarded for this matching).
akalin@chromium.org859d7d42010-10-29 09:39:48 +090066//
67// Any pattern containing a forward or backward slash will be tested
68// against the whole pathname and not just the module. E.g.,
69// "*/foo/bar/*=2" would change the logging level for all code in
70// source files under a "foo/bar" directory.
akalin@chromium.orgf0ee79c2010-09-30 04:26:36 +090071const char kVModule[] = "vmodule";
72
brettw@chromium.org1c8c3be2010-08-18 04:40:11 +090073// Will wait for 60 seconds for a debugger to come to attach to the process.
74const char kWaitForDebugger[] = "wait-for-debugger";
75
enne7002b802014-09-26 04:49:56 +090076// Sends trace events from these categories to a file.
77// --trace-to-file on its own sends to default categories.
78const char kTraceToFile[] = "trace-to-file";
79
80// Specifies the file name for --trace-to-file. If unspecified, it will
81// go to a default file name.
82const char kTraceToFileName[] = "trace-to-file-name";
83
qsr@chromium.org4b1cc322013-12-11 21:49:17 +090084// Configure whether chrome://profiler will contain timing information. This
85// option is enabled by default. A value of "0" will disable profiler timing,
86// while all other values will enable it.
87const char kProfilerTiming[] = "profiler-timing";
88// Value of the --profiler-timing flag that will disable timing information for
89// chrome://profiler.
90const char kProfilerTimingDisabledValue[] = "0";
91
fsamuel21f49342016-07-09 08:02:44 +090092// Specifies a location for profiling output. This will only work if chrome has
93// been built with the gyp variable profiling=1 or gn arg enable_profiling=true.
94//
95// {pid} if present will be replaced by the pid of the process.
96// {count} if present will be incremented each time a profile is generated
97// for this process.
98// The default is chrome-profile-{pid} for the browser and test-profile-{pid}
99// for tests.
100const char kProfilingFile[] = "profiling-file";
101
jschuh0bf79e22015-06-23 22:36:28 +0900102#if defined(OS_WIN)
103// Disables the USB keyboard detection for blocking the OSK on Win8+.
104const char kDisableUsbKeyboardDetect[] = "disable-usb-keyboard-detect";
105#endif
106
jochen@chromium.orgc1087332013-11-07 17:35:29 +0900107#if defined(OS_POSIX)
108// Used for turning on Breakpad crash reporting in a debug environment where
109// crash reporting is typically compiled but disabled.
110const char kEnableCrashReporterForTesting[] =
111 "enable-crash-reporter-for-testing";
112#endif
113
initial.commit3f4a7322008-07-27 06:49:38 +0900114} // namespace switches