OOP HP: Add a flag to keep small allocations.
By default, small allocations are pruned from the heap dump. This reduces the
size of the compressed trace by 100x. If pruning is disabled, the
chrome://tracing UI may be unable to take or load the trace. The trace can
still be saved directly using chrome://memory-internals.
Other mechanisms [e.g. diff_heap_profiler.py] may be necessary to examine the
trace. Note that automatically uploaded traces will always be pruned. This only
affects manually taken memory-infra traces.;
Bug:
Change-Id: I9aacc1d4e9ea65185b87f0a6ad53d727083576e8
Reviewed-on: https://chromium-review.googlesource.com/808995
Commit-Queue: Erik Chen <[email protected]>
Reviewed-by: Brett Wilson <[email protected]>
Reviewed-by: Albert J. Wong <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Cr-Commit-Position: refs/heads/master@{#522151}
diff --git a/chrome/browser/flag_descriptions.h b/chrome/browser/flag_descriptions.h
index 61132b4..e3791292 100644
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -320,6 +320,8 @@
extern const char kEnableOutOfProcessHeapProfilingModeBrowser[];
extern const char kEnableOutOfProcessHeapProfilingModeGpu[];
extern const char kEnableOutOfProcessHeapProfilingModeRendererSampling[];
+extern const char kOutOfProcessHeapProfilingKeepSmallAllocations[];
+extern const char kOutOfProcessHeapProfilingKeepSmallAllocationsDescription[];
extern const char kEnablePictureInPictureName[];
extern const char kEnablePictureInPictureDescription[];