Support heap profiling for GPU process

Desktop / Chromium - erikchen [chromium.org] - 11 September 2017 17:27 EDT

This CL renames the memlog mode kBrowser to be kMinimal, and kMinimal now profiles both the browser and GPU processes. In kMinimal or kAll memlog mode, the GPU process will upload a report if private memory footprint exceeds 1 GB.

Bug: Change-Id: Iae1b6cb101ecafcdc7724c0ffda4c35fd9704a56 Reviewed-on: https://chromium-review.googlesource.com/658146

1dff181 Support heap profiling for GPU process.
chrome/browser/about_flags.cc | 4 ++--
chrome/browser/flag_descriptions.cc | 4 ++--
chrome/browser/flag_descriptions.h | 2 +-
.../background_profiling_triggers.cc | 14 ++++++++---
.../background_profiling_triggers_unittest.cc | 18 ++++++++++----
.../browser/profiling_host/memlog_browsertest.cc | 2 +-
.../profiling_host/profiling_process_host.cc | 25 ++++++++-----------
.../profiling_host/profiling_process_host.h | 4 ++--
chrome/browser/ui/webui/memory_internals_ui.cc | 28 +++++++++++++++-------
chrome/common/chrome_switches.cc | 2 +-
chrome/common/chrome_switches.h | 2 +-
11 files changed, 65 insertions(+), 40 deletions(-)

Upstream: git.chromium.org


  • Share