| 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. |
| 11 const char kDisableBreakpad[] = "disable-breakpad"; | 11 const char kDisableBreakpad[] = "disable-breakpad"; |
| 12 | 12 |
| 13 // Indicates that crash reporting should be enabled. On platforms where helper | 13 // 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 | 14 // processes cannot access to files needed to make this decision, this flag is |
| 15 // generated internally. | 15 // generated internally. |
| 16 const char kEnableCrashReporter[] = "enable-crash-reporter"; | 16 const char kEnableCrashReporter[] = "enable-crash-reporter"; |
| 17 | 17 |
| 18 // Makes memory allocators keep track of their allocations and context, so a | 18 // 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 | 19 // detailed breakdown of memory usage can be presented in chrome://tracing when |
| 20 // the memory-infra category is enabled. | 20 // the memory-infra category is enabled. |
| 21 const char kEnableHeapProfiling[] = "enable-heap-profiling"; | 21 const char kEnableHeapProfiling[] = "enable-heap-profiling"; |
| 22 | 22 |
| 23 // Report pseudo allocation traces. Pseudo traces are derived from currently |
| 24 // active trace events. |
| 25 const char kEnableHeapProfilingModePseudo[] = ""; |
| 26 |
| 23 // Report native (walk the stack) allocation traces. By default pseudo stacks | 27 // Report native (walk the stack) allocation traces. By default pseudo stacks |
| 24 // derived from trace events are reported. | 28 // derived from trace events are reported. |
| 25 const char kEnableHeapProfilingModeNative[] = "native"; | 29 const char kEnableHeapProfilingModeNative[] = "native"; |
| 26 | 30 |
| 27 // Report per-task heap usage and churn in the task profiler. | 31 // Report per-task heap usage and churn in the task profiler. |
| 28 // Does not keep track of individual allocations unlike the default and native | 32 // Does not keep track of individual allocations unlike the default and native |
| 29 // mode. Keeps only track of summarized churn stats in the task profiler | 33 // mode. Keeps only track of summarized churn stats in the task profiler |
| 30 // (chrome://profiler). | 34 // (chrome://profiler). |
| 31 const char kEnableHeapProfilingTaskProfiler[] = "task-profiler"; | 35 const char kEnableHeapProfilingTaskProfiler[] = "task-profiler"; |
| 32 | 36 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 #endif | 115 #endif |
| 112 | 116 |
| 113 #if defined(OS_POSIX) | 117 #if defined(OS_POSIX) |
| 114 // Used for turning on Breakpad crash reporting in a debug environment where | 118 // Used for turning on Breakpad crash reporting in a debug environment where |
| 115 // crash reporting is typically compiled but disabled. | 119 // crash reporting is typically compiled but disabled. |
| 116 const char kEnableCrashReporterForTesting[] = | 120 const char kEnableCrashReporterForTesting[] = |
| 117 "enable-crash-reporter-for-testing"; | 121 "enable-crash-reporter-for-testing"; |
| 118 #endif | 122 #endif |
| 119 | 123 |
| 120 } // namespace switches | 124 } // namespace switches |
| OLD | NEW |