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

Issue 1975963003: Improved and generalized page load metric immediate event logging. (Closed)

Created:
4 years, 7 months ago by Bryan McQuade
Modified:
4 years, 7 months ago
Reviewers:
Charlie Harrison
CC:
chromium-reviews, csharrison+watch_chromium.org, loading-reviews+metrics_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improved and generalized page load metric immediate event logging. Our current page load metric logging approach has been to log at the very end of the page lifecycle, in the PageLoadMetricsObserver OnComplete callback. This keeps metric logging logic simple, but has some costs. In particular, it means that metrics may be logged long after events were actually observed on a page load, which leads to metrics landing in the 'wrong' UMA record, and on Android we see >10% loss in logging and 7% skew in the mean, likely due to Android killing the browser process after backgrounding, leading to our code failing to log metrics for some pages. This patch introduces a class that makes it easy for us to log metrics immediately. In a follow up change, this class will be used to log additional metrics. BUG=611740 Committed: https://crrev.com/9a521d48e39c57ee5cb42326e9e50bd76dbb4bb2 Cr-Commit-Position: refs/heads/master@{#393599}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -12 lines) Patch
M chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.h View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc View 1 2 1 chunk +5 lines, -9 lines 0 comments Download
M components/page_load_metrics/browser/metrics_web_contents_observer.cc View 1 2 2 chunks +39 lines, -1 line 0 comments Download
M components/page_load_metrics/browser/page_load_metrics_observer.h View 1 2 1 chunk +22 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (4 generated)
Bryan McQuade
PTAL
4 years, 7 months ago (2016-05-13 15:15:04 UTC) #2
Charlie Harrison
Generally looks good. What's your reasoning for making this a separate object? Why wouldn't observers ...
4 years, 7 months ago (2016-05-13 16:46:21 UTC) #4
Bryan McQuade
On 2016/05/13 at 16:46:21, csharrison wrote: > Generally looks good. What's your reasoning for making ...
4 years, 7 months ago (2016-05-13 16:50:40 UTC) #5
Charlie Harrison
A big refactor isn't necessary, just allow them to optionally override OnFirstContentfulPaint, etc. I think ...
4 years, 7 months ago (2016-05-13 17:03:41 UTC) #6
Bryan McQuade
On 2016/05/13 at 17:03:41, csharrison wrote: > A big refactor isn't necessary, just allow them ...
4 years, 7 months ago (2016-05-13 17:58:08 UTC) #7
Charlie Harrison
lgtm thanks.
4 years, 7 months ago (2016-05-13 18:07:39 UTC) #8
Charlie Harrison
lgtm thanks.
4 years, 7 months ago (2016-05-13 18:07:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1975963003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1975963003/60001
4 years, 7 months ago (2016-05-13 18:10:18 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-13 19:16:04 UTC) #12
commit-bot: I haz the power
4 years, 7 months ago (2016-05-13 19:17:31 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9a521d48e39c57ee5cb42326e9e50bd76dbb4bb2
Cr-Commit-Position: refs/heads/master@{#393599}

Powered by Google App Engine
This is Rietveld 408576698