Support persistent system profiles

Desktop / Chromium - bcwhite [chromium.org] - 30 May 2017 11:26 EDT

This allows the entire system profile to be saved into one or more persistent memory segments for use after the process exits.

The initial version saves only the snapshot known during metrics reporting but later versions will build upon this to keep the profile up-to-date in real time.

BUG=695880

Review-Url: https://codereview.chromium.org/2907543003 Cr-Commit-Position: refs/heads/master@{#475534}

4cde5b7 Support persistent system profiles.
base/metrics/persistent_memory_allocator.cc | 5 +
base/metrics/persistent_memory_allocator.h | 3 +-
chrome/browser/chrome_browser_field_trials.cc | 5 +
components/metrics/BUILD.gn | 3 +
components/metrics/metrics_log.cc | 9 +-
components/metrics/persistent_system_profile.cc | 301 +++++++++++++++++++++
components/metrics/persistent_system_profile.h | 126 +++++++++
.../metrics/persistent_system_profile_unittest.cc | 123 +++++++++
8 files changed, 573 insertions(+), 2 deletions(-)

Upstream: git.chromium.org


  • Share