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

Issue 1314843009: Add DocumentTiming metrics for "time to first text paint" (Closed)

Created:
5 years, 3 months ago by Kunihiko Sakamoto
Modified:
5 years, 3 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-dom_chromium.org, Bryan McQuade, Rik, danakj, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, sof
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add DocumentTiming metrics for "time to first text paint" This patch adds two DocumentTiming metrics, FirstNonBlankText and FirstCustomFontText. See https://codereview.chromium.org/1325593003/ for the chromium side of this change, which records UMA for these timings. BUG=520410

Patch Set 1 : Paint time metrics #

Total comments: 4

Patch Set 2 : #

Total comments: 3

Patch Set 3 : update comment and rebase #

Total comments: 2

Patch Set 4 : #

Total comments: 7

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -1 line) Patch
M Source/core/css/CSSFontSelector.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/css/CSSFontSelector.cpp View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/dom/Document.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/dom/DocumentTiming.h View 3 chunks +6 lines, -0 lines 0 comments Download
M Source/core/dom/DocumentTiming.cpp View 2 chunks +16 lines, -0 lines 0 comments Download
M Source/core/timing/PerformanceTiming.h View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/timing/PerformanceTiming.cpp View 1 chunk +18 lines, -0 lines 0 comments Download
M Source/platform/fonts/Font.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M Source/platform/fonts/Font.cpp View 1 2 3 4 6 chunks +18 lines, -0 lines 0 comments Download
M Source/platform/fonts/FontFallbackList.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M Source/platform/fonts/FontFallbackList.cpp View 1 2 3 3 chunks +4 lines, -0 lines 0 comments Download
M Source/platform/fonts/FontSelector.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Source/web/WebPerformance.cpp View 1 chunk +10 lines, -0 lines 0 comments Download
M public/web/WebPerformance.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
Kunihiko Sakamoto
5 years, 3 months ago (2015-09-14 07:44:56 UTC) #6
kinuko
https://codereview.chromium.org/1314843009/diff/80001/Source/core/css/CSSFontSelector.cpp File Source/core/css/CSSFontSelector.cpp (right): https://codereview.chromium.org/1314843009/diff/80001/Source/core/css/CSSFontSelector.cpp#newcode136 Source/core/css/CSSFontSelector.cpp:136: if (m_firstCustomFontTextReported) Looks like common pattern is doing something ...
5 years, 3 months ago (2015-09-14 14:14:34 UTC) #7
Kunihiko Sakamoto
https://codereview.chromium.org/1314843009/diff/80001/Source/core/css/CSSFontSelector.cpp File Source/core/css/CSSFontSelector.cpp (right): https://codereview.chromium.org/1314843009/diff/80001/Source/core/css/CSSFontSelector.cpp#newcode136 Source/core/css/CSSFontSelector.cpp:136: if (m_firstCustomFontTextReported) On 2015/09/14 14:14:33, kinuko wrote: > Looks ...
5 years, 3 months ago (2015-09-15 05:11:02 UTC) #8
kinuko
lgtm, I think https://codereview.chromium.org/1314843009/diff/100001/Source/core/dom/Document.cpp File Source/core/dom/Document.cpp (right): https://codereview.chromium.org/1314843009/diff/100001/Source/core/dom/Document.cpp#newcode1928 Source/core/dom/Document.cpp:1928: } (If we start to feel ...
5 years, 3 months ago (2015-09-15 05:25:08 UTC) #9
kinuko
Also before we actually start wiring this change could we think about how to avoid ...
5 years, 3 months ago (2015-09-15 05:43:17 UTC) #10
Kunihiko Sakamoto
On 2015/09/15 05:43:17, kinuko wrote: > Also before we actually start wiring this change could ...
5 years, 3 months ago (2015-09-15 06:22:42 UTC) #11
Bryan McQuade
Really glad to see this change, thanks! One question from me. https://codereview.chromium.org/1314843009/diff/120001/Source/platform/fonts/FontFallbackList.cpp File Source/platform/fonts/FontFallbackList.cpp (right): ...
5 years, 3 months ago (2015-09-15 17:24:17 UTC) #13
Kunihiko Sakamoto
eae@, could you take a look for platform/fonts? https://codereview.chromium.org/1314843009/diff/120001/Source/platform/fonts/FontFallbackList.cpp File Source/platform/fonts/FontFallbackList.cpp (right): https://codereview.chromium.org/1314843009/diff/120001/Source/platform/fonts/FontFallbackList.cpp#newcode104 Source/platform/fonts/FontFallbackList.cpp:104: m_fontSelector->reportFirstNonBlankText(m_hasCustomFont); ...
5 years, 3 months ago (2015-09-16 05:37:03 UTC) #14
Kunihiko Sakamoto
+drott@, would you mind reviewing fonts part?
5 years, 3 months ago (2015-09-16 05:41:42 UTC) #16
drott
Thanks for the patch and working on getting better metrics. While I agree that having ...
5 years, 3 months ago (2015-09-16 07:26:20 UTC) #17
Kunihiko Sakamoto
Thank you for the comments. We're still trying to figure out a good definition of ...
5 years, 3 months ago (2015-09-17 08:36:10 UTC) #18
kinuko
On 2015/09/17 08:36:10, ksakamoto (ooo Sep 19-27) wrote: > https://codereview.chromium.org/1314843009/diff/140001/Source/platform/fonts/Font.cpp > File Source/platform/fonts/Font.cpp (right): > ...
5 years, 3 months ago (2015-09-18 04:05:18 UTC) #19
Kunihiko Sakamoto
On 2015/09/18 04:05:18, kinuko wrote: > On 2015/09/17 08:36:10, ksakamoto (ooo Sep 19-27) wrote: > ...
5 years, 3 months ago (2015-09-18 05:16:36 UTC) #20
esprehn
I don't think this is the right layer of the system to report this. Drawing ...
5 years, 3 months ago (2015-09-18 05:44:39 UTC) #22
Kunihiko Sakamoto
Yeah, we should explore that way (thanks Bryan for forwarding the email thread). I'm closing ...
5 years, 3 months ago (2015-09-18 08:03:59 UTC) #23
Bryan McQuade
5 years, 3 months ago (2015-09-18 14:03:23 UTC) #24
Message was sent while issue was closed.
Thanks for digging into this! Agree that we should approach this from the
paint side of things.

On Fri, Sep 18, 2015 at 4:04 AM <ksakamoto@chromium.org> wrote:

> Yeah, we should explore that way (thanks Bryan for forwarding the email
> thread).
>
> I'm closing this codereview and will create new one once it's ready.
> Thanks for the reviews!
>
>
> https://codereview.chromium.org/1314843009/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to blink-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698