[Tab Metrics] Measure FP, FCP and FMP for Foreground Tabs during Session Restore

Desktop / Chromium - ducbui [google.com] - 10 August 2017 15:24 EDT

The CL involves:- Creating a SessionRestorePageLoadMetricsObserver to record FP, FCP and FMP for foreground tabs during session restore.

This CL depends on another: Keep track of session-restoring tabs (https://chromium-review.googlesource.com/c/588168). Keep track of restored-in-foreground tabs (https://chromium-review.googlesource.com/c/599507). Add signals that mark the start and end of session restore (https://crrev.com/2935183002/).

BUG=731901

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

2fd90c9 [Tab Metrics] Measure FP, FCP and FMP for Foreground Tabs during Session Restore
chrome/browser/BUILD.gn | 2 +
.../session_restore_page_load_metrics_observer.cc | 79 +++++
.../session_restore_page_load_metrics_observer.h | 45 +++
..._restore_page_load_metrics_observer_unittest.cc | 263 +++++++++++++++++
.../page_load_metrics_browsertest.cc | 324 ++++++++++++++++++++-
.../page_load_metrics_initialize.cc | 14 +-
chrome/test/BUILD.gn | 1 +
tools/metrics/histograms/histograms.xml | 33 +++
8 files changed, 746 insertions(+), 15 deletions(-)

Upstream: git.chromium.org


  • Share