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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base_switches.cc
diff --git a/base/base_switches.cc b/base/base_switches.cc
index f5c6eb3f59bb78f81f313436c11e8609efadd8a1..e6e1035f7615cb9b7471f4c165fc61cddec82d7c 100644
--- a/base/base_switches.cc
+++ b/base/base_switches.cc
@@ -24,6 +24,12 @@ const char kEnableHeapProfiling[] = "enable-heap-profiling";
// derived from trace events are reported.
const char kEnableHeapProfilingModeNative[] = "native";
+// Report per-task heap usage and churn in the task profiler.
+// Does not keep track of individual allocations unlike the default and native
+// mode. Keeps only track of summarized churn stats in the task profiler
+// (chrome://profiler)"
gab 2017/02/15 21:07:53 s/"/./ ?
Sigurður Ásgeirsson 2017/02/16 13:42:51 Oops, copy/paste gaffe. Thanks.
+const char kEnableHeapProfilingTaskProfiler[] = "task-profiler";
+
// Generates full memory crash dump.
const char kFullMemoryCrashReport[] = "full-memory-crash-report";
« 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