Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(602)

Side by Side Diff: base/base_switches.cc

Issue 2695013005: Only enable heap tracking under --enable-heap-profiling=task-profiler. (Closed)
Patch Set: Address Primiano's comments. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/base_switches.h ('k') | base/trace_event/memory_dump_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 native (walk the stack) allocation traces. By default pseudo stacks 23 // Report native (walk the stack) allocation traces. By default pseudo stacks
24 // derived from trace events are reported. 24 // derived from trace events are reported.
25 const char kEnableHeapProfilingModeNative[] = "native"; 25 const char kEnableHeapProfilingModeNative[] = "native";
26 26
27 // Report per-task heap usage and churn in the task profiler.
28 // 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
30 // (chrome://profiler)"
gab 2017/02/15 21:07:53 s/"/./ ?
Sigurður Ásgeirsson 2017/02/16 13:42:51 Oops, copy/paste gaffe. Thanks.
31 const char kEnableHeapProfilingTaskProfiler[] = "task-profiler";
32
27 // Generates full memory crash dump. 33 // Generates full memory crash dump.
28 const char kFullMemoryCrashReport[] = "full-memory-crash-report"; 34 const char kFullMemoryCrashReport[] = "full-memory-crash-report";
29 35
30 // Force low-end device mode when set. 36 // Force low-end device mode when set.
31 const char kEnableLowEndDeviceMode[] = "enable-low-end-device-mode"; 37 const char kEnableLowEndDeviceMode[] = "enable-low-end-device-mode";
32 38
33 // Force disabling of low-end device mode when set. 39 // Force disabling of low-end device mode when set.
34 const char kDisableLowEndDeviceMode[] = "disable-low-end-device-mode"; 40 const char kDisableLowEndDeviceMode[] = "disable-low-end-device-mode";
35 41
36 // This option can be used to force field trials when testing changes locally. 42 // This option can be used to force field trials when testing changes locally.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 #endif 111 #endif
106 112
107 #if defined(OS_POSIX) 113 #if defined(OS_POSIX)
108 // Used for turning on Breakpad crash reporting in a debug environment where 114 // Used for turning on Breakpad crash reporting in a debug environment where
109 // crash reporting is typically compiled but disabled. 115 // crash reporting is typically compiled but disabled.
110 const char kEnableCrashReporterForTesting[] = 116 const char kEnableCrashReporterForTesting[] =
111 "enable-crash-reporter-for-testing"; 117 "enable-crash-reporter-for-testing";
112 #endif 118 #endif
113 119
114 } // namespace switches 120 } // namespace switches
OLDNEW
« no previous file with comments | « base/base_switches.h ('k') | base/trace_event/memory_dump_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698