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

Issue 2883273003: Move the user interaction policy for FirstMeaningfulPaint UMA into renderer (Closed)

Created:
3 years, 7 months ago by Kunihiko Sakamoto
Modified:
3 years, 5 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, csharrison+watch_chromium.org, loading-reviews+metrics_chromium.org, speed-metrics-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move the user interaction policy for FirstMeaningfulPaint UMA into renderer FirstMeaningfulPaint UMA is logged only if there's no user interaction between FirstPaint and FirstMeaningfulPaint. But the other consumer of FirstMeaningfulPaint did not have this logic. This patch moves the logic for this user interaction policy from browser (page_load_metrics) to renderer (FirstMeaningfulPaintDetector), so that other page_load_metrics observers will get consistent FMP value. This also removes user-input related FirstMeaningfulPaint histograms, as we no longer track them. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2883273003 Cr-Commit-Position: refs/heads/master@{#482507} Committed: https://chromium.googlesource.com/chromium/src/+/6b1f67dbfa7dc753e17264a38c7cb51f63fac525

Patch Set 1 #

Patch Set 2 : remove test case #

Patch Set 3 : Deprecate FirstMeaningfulPaintSignalStatus2 #

Total comments: 2

Patch Set 4 : filter FMP after user input in renderer #

Patch Set 5 : deprecate FirstMeaningfulPaintToNetworkStable #

Patch Set 6 : rebase #

Patch Set 7 : Add user input histogram in renderer #

Patch Set 8 : rebase #

Total comments: 2

Patch Set 9 : add testcase #

Total comments: 4

Patch Set 10 : move to PageLoad.Internal namespace #

Patch Set 11 : rebase #

Patch Set 12 : crash fix #

Total comments: 4

Patch Set 13 : comments addressed #

Patch Set 14 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -105 lines) Patch
M base/trace_event/common/trace_event_common.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +9 lines, -62 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -32 lines 0 comments Download
M third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp View 1 2 3 4 5 6 7 8 2 chunks +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintTiming.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintTiming.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +29 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +8 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 69 (37 generated)
Kunihiko Sakamoto
3 years, 7 months ago (2017-05-17 04:25:15 UTC) #5
Ilya Sherman
Hmm, are there existing histograms whose descriptions should be updated to note the new semantics? ...
3 years, 7 months ago (2017-05-17 06:44:48 UTC) #12
Kunihiko Sakamoto
On 2017/05/17 06:44:48, Ilya Sherman wrote: > Hmm, are there existing histograms whose descriptions should ...
3 years, 7 months ago (2017-05-17 07:53:58 UTC) #13
tdresser
For what it's worth, I'm always in favor of renaming when we make changes to ...
3 years, 7 months ago (2017-05-17 12:02:28 UTC) #15
Bryan McQuade
On 2017/05/17 at 12:02:28, tdresser wrote: > For what it's worth, I'm always in favor ...
3 years, 7 months ago (2017-05-17 12:11:36 UTC) #16
Bryan McQuade
https://codereview.chromium.org/2883273003/diff/40001/chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc File chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc (right): https://codereview.chromium.org/2883273003/diff/40001/chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc#newcode476 chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc:476: PAGE_LOAD_HISTOGRAM(internal::kHistogramFirstMeaningfulPaintToNetworkStable, is this an important histogram to keep recording? ...
3 years, 7 months ago (2017-05-17 12:15:16 UTC) #17
Kunihiko Sakamoto
PTAL Based on the discussion at chrome-page-load-metrics-infra, I moved the filtering logic to renderer. https://codereview.chromium.org/2883273003/diff/40001/chrome/browser/page_load_metrics/observers/core_page_load_metrics_observer.cc ...
3 years, 7 months ago (2017-05-19 08:21:31 UTC) #21
Ilya Sherman
On 2017/05/17 12:11:36, Bryan McQuade wrote: > On 2017/05/17 at 12:02:28, tdresser wrote: > > ...
3 years, 7 months ago (2017-05-22 20:51:55 UTC) #22
Kunihiko Sakamoto
On 2017/05/22 20:51:55, Ilya Sherman wrote: > On 2017/05/17 12:11:36, Bryan McQuade wrote: > > ...
3 years, 7 months ago (2017-05-23 09:45:53 UTC) #23
tdresser
On 2017/05/23 09:45:53, Kunihiko Sakamoto wrote: > On 2017/05/22 20:51:55, Ilya Sherman wrote: > > ...
3 years, 7 months ago (2017-05-23 12:06:34 UTC) #24
Bryan McQuade
Thanks! This looks fine to me. Only thought would be whether we should add some ...
3 years, 7 months ago (2017-05-23 14:25:36 UTC) #25
Kunihiko Sakamoto
Sorry for the delay. On 2017/05/23 12:06:34, tdresser wrote: > Why are we marking > ...
3 years, 6 months ago (2017-05-30 03:50:06 UTC) #30
Ilya Sherman
Seems like the details of the metrics are still somewhat in flux. Please let me ...
3 years, 6 months ago (2017-05-30 20:02:30 UTC) #31
Kunihiko Sakamoto
Hi Bryan and Tim, would you take another look?
3 years, 6 months ago (2017-06-07 08:26:37 UTC) #32
tdresser
How big a pain would it be to also record FMP after input as a ...
3 years, 6 months ago (2017-06-07 12:32:54 UTC) #33
Kunihiko Sakamoto
On 2017/06/07 12:32:54, tdresser wrote: > How big a pain would it be to also ...
3 years, 6 months ago (2017-06-08 07:54:49 UTC) #34
tdresser
On 2017/06/08 07:54:49, Kunihiko Sakamoto wrote: > On 2017/06/07 12:32:54, tdresser wrote: > > How ...
3 years, 6 months ago (2017-06-08 12:16:12 UTC) #35
Bryan McQuade
Thanks! A couple small additions. RE: logging FMP after input as well (Tim's earlier suggestion), ...
3 years, 6 months ago (2017-06-08 17:47:12 UTC) #36
Kunihiko Sakamoto
On 2017/06/08 12:16:12, tdresser wrote: > On 2017/06/08 07:54:49, Kunihiko Sakamoto wrote: > > On ...
3 years, 6 months ago (2017-06-09 05:39:45 UTC) #37
Kunihiko Sakamoto
On 2017/06/08 17:47:12, Bryan McQuade wrote: > Thanks! A couple small additions. RE: logging FMP ...
3 years, 6 months ago (2017-06-09 05:48:16 UTC) #38
tdresser
On 2017/06/09 05:48:16, Kunihiko Sakamoto wrote: > On 2017/06/08 17:47:12, Bryan McQuade wrote: > > ...
3 years, 6 months ago (2017-06-09 15:45:49 UTC) #39
Kunihiko Sakamoto
Thanks Tim! Asking for OWNERs review, PTAL: oysteine@ for base/trace_event/ bmcquade@ for page_load_metrics kinuko@ for ...
3 years, 6 months ago (2017-06-14 06:58:55 UTC) #47
kinuko
blink lgtm https://codereview.chromium.org/2883273003/diff/220001/third_party/WebKit/Source/core/paint/PaintTiming.h File third_party/WebKit/Source/core/paint/PaintTiming.h (right): https://codereview.chromium.org/2883273003/diff/220001/third_party/WebKit/Source/core/paint/PaintTiming.h#newcode53 third_party/WebKit/Source/core/paint/PaintTiming.h:53: void SetFirstMeaningfulPaint(double stamp, bool was_after_user_input); nit: can ...
3 years, 6 months ago (2017-06-14 07:58:42 UTC) #48
Ilya Sherman
Metrics LGTM, thanks. https://codereview.chromium.org/2883273003/diff/220001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2883273003/diff/220001/tools/metrics/histograms/histograms.xml#newcode49843 tools/metrics/histograms/histograms.xml:49843: + FirstMeaningfulPaint. Recorded when the page ...
3 years, 6 months ago (2017-06-15 03:40:20 UTC) #51
Kunihiko Sakamoto
https://codereview.chromium.org/2883273003/diff/220001/third_party/WebKit/Source/core/paint/PaintTiming.h File third_party/WebKit/Source/core/paint/PaintTiming.h (right): https://codereview.chromium.org/2883273003/diff/220001/third_party/WebKit/Source/core/paint/PaintTiming.h#newcode53 third_party/WebKit/Source/core/paint/PaintTiming.h:53: void SetFirstMeaningfulPaint(double stamp, bool was_after_user_input); On 2017/06/14 07:58:41, kinuko ...
3 years, 6 months ago (2017-06-15 03:53:57 UTC) #52
Bryan McQuade
LGTM, thanks!
3 years, 6 months ago (2017-06-19 12:38:58 UTC) #53
Kunihiko Sakamoto
Hi oysteine@, could you take a look for base/trace_event/? Thanks!
3 years, 6 months ago (2017-06-20 05:52:12 UTC) #54
Kunihiko Sakamoto
On 2017/06/20 05:52:12, Kunihiko Sakamoto wrote: > Hi oysteine@, could you take a look for ...
3 years, 6 months ago (2017-06-26 06:39:15 UTC) #58
Primiano Tucci (use gerrit)
base/trace_event RS-LGTM with +fmeawad ACK. Let's double-check with hi as that file is shared with ...
3 years, 6 months ago (2017-06-26 09:52:29 UTC) #60
fmeawad
As long as you are using internal existing macros, nothing to worry about. base/trace_event LGTM ...
3 years, 5 months ago (2017-06-26 17:23:12 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2883273003/260001
3 years, 5 months ago (2017-06-27 01:34:49 UTC) #66
commit-bot: I haz the power
3 years, 5 months ago (2017-06-27 01:39:55 UTC) #69
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/6b1f67dbfa7dc753e17264a38c7c...

Powered by Google App Engine
This is Rietveld 408576698