OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 "base/base_switches.h" | 5 #include "base/base_switches.h" |
6 #include "build/build_config.h" | 6 #include "build/build_config.h" |
7 | 7 |
8 namespace switches { | 8 namespace switches { |
9 | 9 |
10 // Disables the crash reporting. | 10 // Disables the crash reporting. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 const char kTraceToFileName[] = "trace-to-file-name"; | 82 const char kTraceToFileName[] = "trace-to-file-name"; |
83 | 83 |
84 // Configure whether chrome://profiler will contain timing information. This | 84 // Configure whether chrome://profiler will contain timing information. This |
85 // option is enabled by default. A value of "0" will disable profiler timing, | 85 // option is enabled by default. A value of "0" will disable profiler timing, |
86 // while all other values will enable it. | 86 // while all other values will enable it. |
87 const char kProfilerTiming[] = "profiler-timing"; | 87 const char kProfilerTiming[] = "profiler-timing"; |
88 // Value of the --profiler-timing flag that will disable timing information for | 88 // Value of the --profiler-timing flag that will disable timing information for |
89 // chrome://profiler. | 89 // chrome://profiler. |
90 const char kProfilerTimingDisabledValue[] = "0"; | 90 const char kProfilerTimingDisabledValue[] = "0"; |
91 | 91 |
| 92 // 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. |
| 100 const char kProfilingFile[] = "profiling-file"; |
| 101 |
92 #if defined(OS_WIN) | 102 #if defined(OS_WIN) |
93 // Disables the USB keyboard detection for blocking the OSK on Win8+. | 103 // Disables the USB keyboard detection for blocking the OSK on Win8+. |
94 const char kDisableUsbKeyboardDetect[] = "disable-usb-keyboard-detect"; | 104 const char kDisableUsbKeyboardDetect[] = "disable-usb-keyboard-detect"; |
95 #endif | 105 #endif |
96 | 106 |
97 #if defined(OS_POSIX) | 107 #if defined(OS_POSIX) |
98 // Used for turning on Breakpad crash reporting in a debug environment where | 108 // Used for turning on Breakpad crash reporting in a debug environment where |
99 // crash reporting is typically compiled but disabled. | 109 // crash reporting is typically compiled but disabled. |
100 const char kEnableCrashReporterForTesting[] = | 110 const char kEnableCrashReporterForTesting[] = |
101 "enable-crash-reporter-for-testing"; | 111 "enable-crash-reporter-for-testing"; |
102 #endif | 112 #endif |
103 | 113 |
104 } // namespace switches | 114 } // namespace switches |
OLD | NEW |