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

Issue 1230513002: Record first layout time UMA metric in PageLoadHistograms. (Closed)

Created:
5 years, 5 months ago by Bryan McQuade
Modified:
5 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Record first layout time UMA metric in PageLoadHistograms. Due to the issue described in crbug.com/382542, many histograms intended to be logged by PageLoadHistograms do not get logged, because fast shutdown kills processes before they get a chance to log. This patch logs first layout metrics earlier in the page life cycle, in order to avoid losing these histograms. BUG=507790 R=jochen,pmeenan,rdsmith Committed: https://crrev.com/973721b2beff40e8fd2fd876e826e3cb1176f4f8 Cr-Commit-Position: refs/heads/master@{#338286}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Log after layout callback. #

Patch Set 4 : Revert removed newline. #

Total comments: 2

Patch Set 5 : Update comment. #

Total comments: 4

Patch Set 6 : Address comments. #

Patch Set 7 : Add additional comment. #

Patch Set 8 : Add histograms.xml entries. #

Patch Set 9 : Fix histogram names. #

Patch Set 10 : Move histograms.xml to separate change. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -5 lines) Patch
M chrome/renderer/page_load_histograms.h View 1 2 3 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/renderer/page_load_histograms.cc View 1 2 3 4 5 6 7 8 5 chunks +88 lines, -5 lines 0 comments Download

Messages

Total messages: 24 (12 generated)
Bryan McQuade
5 years, 5 months ago (2015-07-08 20:51:35 UTC) #4
Bryan McQuade
5 years, 5 months ago (2015-07-09 18:50:10 UTC) #8
Randy Smith (Not in Mondays)
As may be obvious, my responses will be confined to the abstract level--I don't know ...
5 years, 5 months ago (2015-07-09 18:58:23 UTC) #9
Bryan McQuade
https://codereview.chromium.org/1230513002/diff/60001/chrome/renderer/page_load_histograms.cc File chrome/renderer/page_load_histograms.cc (right): https://codereview.chromium.org/1230513002/diff/60001/chrome/renderer/page_load_histograms.cc#newcode932 chrome/renderer/page_load_histograms.cc:932: Time first_layout = Time::FromDoubleT(performance.firstLayout()); Good question, yes. On the ...
5 years, 5 months ago (2015-07-09 19:10:42 UTC) #10
Pat Meenan
Other than the potential overhead, LGTM. I'm assuming that first layout is already correctly measured ...
5 years, 5 months ago (2015-07-09 19:29:28 UTC) #11
Bryan McQuade
https://codereview.chromium.org/1230513002/diff/80001/chrome/renderer/page_load_histograms.cc File chrome/renderer/page_load_histograms.cc (right): https://codereview.chromium.org/1230513002/diff/80001/chrome/renderer/page_load_histograms.cc#newcode960 chrome/renderer/page_load_histograms.cc:960: void PageLoadHistograms::DidUpdateLayout() { Should just be a function call, ...
5 years, 5 months ago (2015-07-09 19:35:04 UTC) #12
Randy Smith (Not in Mondays)
LGTM (though again, I don't really know renderer code).
5 years, 5 months ago (2015-07-09 21:35:23 UTC) #13
Bryan McQuade
Adding asvitkine for histograms.xml.
5 years, 5 months ago (2015-07-09 22:15:24 UTC) #15
jochen (gone - plz use gerrit)
lgtm
5 years, 5 months ago (2015-07-10 09:06:29 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230513002/180001
5 years, 5 months ago (2015-07-10 13:18:15 UTC) #22
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 5 months ago (2015-07-10 14:08:53 UTC) #23
commit-bot: I haz the power
5 years, 5 months ago (2015-07-10 14:09:45 UTC) #24
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/973721b2beff40e8fd2fd876e826e3cb1176f4f8
Cr-Commit-Position: refs/heads/master@{#338286}

Powered by Google App Engine
This is Rietveld 408576698