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 | 6 |
7 namespace switches { | 7 namespace switches { |
8 | 8 |
9 // Disables the crash reporting. | 9 // Disables the crash reporting. |
10 const char kDisableBreakpad[] = "disable-breakpad"; | 10 const char kDisableBreakpad[] = "disable-breakpad"; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // "*/foo/bar/*=2" would change the logging level for all code in | 43 // "*/foo/bar/*=2" would change the logging level for all code in |
44 // source files under a "foo/bar" directory. | 44 // source files under a "foo/bar" directory. |
45 const char kVModule[] = "vmodule"; | 45 const char kVModule[] = "vmodule"; |
46 | 46 |
47 // Will wait for 60 seconds for a debugger to come to attach to the process. | 47 // Will wait for 60 seconds for a debugger to come to attach to the process. |
48 const char kWaitForDebugger[] = "wait-for-debugger"; | 48 const char kWaitForDebugger[] = "wait-for-debugger"; |
49 | 49 |
50 // Sends a pretty-printed version of tracing info to the console. | 50 // Sends a pretty-printed version of tracing info to the console. |
51 const char kTraceToConsole[] = "trace-to-console"; | 51 const char kTraceToConsole[] = "trace-to-console"; |
52 | 52 |
| 53 // Sends trace events from these categories to a file. |
| 54 // --trace-to-file on its own sends to default categories. |
| 55 const 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. |
| 59 const char kTraceToFileName[] = "trace-to-file-name"; |
| 60 |
53 // Configure whether chrome://profiler will contain timing information. This | 61 // Configure whether chrome://profiler will contain timing information. This |
54 // option is enabled by default. A value of "0" will disable profiler timing, | 62 // option is enabled by default. A value of "0" will disable profiler timing, |
55 // while all other values will enable it. | 63 // while all other values will enable it. |
56 const char kProfilerTiming[] = "profiler-timing"; | 64 const char kProfilerTiming[] = "profiler-timing"; |
57 // Value of the --profiler-timing flag that will disable timing information for | 65 // Value of the --profiler-timing flag that will disable timing information for |
58 // chrome://profiler. | 66 // chrome://profiler. |
59 const char kProfilerTimingDisabledValue[] = "0"; | 67 const char kProfilerTimingDisabledValue[] = "0"; |
60 | 68 |
61 #if defined(OS_POSIX) | 69 #if defined(OS_POSIX) |
62 // Used for turning on Breakpad crash reporting in a debug environment where | 70 // Used for turning on Breakpad crash reporting in a debug environment where |
63 // crash reporting is typically compiled but disabled. | 71 // crash reporting is typically compiled but disabled. |
64 const char kEnableCrashReporterForTesting[] = | 72 const char kEnableCrashReporterForTesting[] = |
65 "enable-crash-reporter-for-testing"; | 73 "enable-crash-reporter-for-testing"; |
66 #endif | 74 #endif |
67 | 75 |
68 } // namespace switches | 76 } // namespace switches |
OLD | NEW |