Move initial metrics gathering tasks out of MetricsService.
[chromium-blink-merge.git] / base / base_switches.cc
blob81698cdfc13fdac9cc5f3ef49243e93ef6eab00a
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.
5 #include "base/base_switches.h"
7 namespace switches {
9 // Disables the crash reporting.
10 const char kDisableBreakpad[] = "disable-breakpad";
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.
15 const char kEnableCrashReporter[] = "enable-crash-reporter";
17 // Generates full memory crash dump.
18 const char kFullMemoryCrashReport[] = "full-memory-crash-report";
20 // Suppresses all error dialogs when present.
21 const char kNoErrorDialogs[] = "noerrdialogs";
23 // When running certain tests that spawn child processes, this switch indicates
24 // to the test framework that the current process is a child process.
25 const char kTestChildProcess[] = "test-child-process";
27 // Gives the default maximal active V-logging level; 0 is the default.
28 // Normally positive values are used for V-logging levels.
29 const char kV[] = "v";
31 // Gives the per-module maximal V-logging levels to override the value
32 // given by --v. E.g. "my_module=2,foo*=3" would change the logging
33 // level for all code in source files "my_module.*" and "foo*.*"
34 // ("-inl" suffixes are also disregarded for this matching).
36 // Any pattern containing a forward or backward slash will be tested
37 // against the whole pathname and not just the module. E.g.,
38 // "*/foo/bar/*=2" would change the logging level for all code in
39 // source files under a "foo/bar" directory.
40 const char kVModule[] = "vmodule";
42 // Will wait for 60 seconds for a debugger to come to attach to the process.
43 const char kWaitForDebugger[] = "wait-for-debugger";
45 // Sends a pretty-printed version of tracing info to the console.
46 const char kTraceToConsole[] = "trace-to-console";
48 // Configure whether chrome://profiler will contain timing information. This
49 // option is enabled by default. A value of "0" will disable profiler timing,
50 // while all other values will enable it.
51 const char kProfilerTiming[] = "profiler-timing";
52 // Value of the --profiler-timing flag that will disable timing information for
53 // chrome://profiler.
54 const char kProfilerTimingDisabledValue[] = "0";
56 #if defined(OS_POSIX)
57 // Used for turning on Breakpad crash reporting in a debug environment where
58 // crash reporting is typically compiled but disabled.
59 const char kEnableCrashReporterForTesting[] =
60 "enable-crash-reporter-for-testing";
61 #endif
63 #if defined(OS_ANDROID)
64 // Overrides low-end device detection, disabling low-end device optimizations.
65 const char kDisableLowEndDeviceMode[] = "disable-low-end-device-mode";
67 // Overrides low-end device detection, enabling low-end device optimizations.
68 const char kEnableLowEndDeviceMode[] = "enable-low-end-device-mode";
69 #endif
71 } // namespace switches