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

Issue 2289303004: WebFonts: measure network loading time (Closed)

Created:
4 years, 3 months ago by Takashi Toyoshima
Modified:
4 years, 3 months ago
CC:
darktears, apavlov+blink_chromium.org, asvitkine+watch_chromium.org, blink-reviews, blink-reviews-css, chromium-reviews, dglazkov+blink, rwlbuis, Shao-Chuan Lee
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebFonts: measure network loading time We have metrics that measures WebFonts loading time, but now that it turned out majority in the report comes from caches. This new metrics variant measure WebFonts loading time only for requests that actually make network requets. This will contribute to understand WebFont loading performance distributions. Committed: https://crrev.com/364799d5bf4e30dcad82acb246163cbec077d8d7 Cr-Commit-Position: refs/heads/master@{#417907}

Patch Set 1 #

Total comments: 2

Patch Set 2 : use histogram_suffixes #

Total comments: 2

Patch Set 3 : enum #

Patch Set 4 : minor fix #

Total comments: 12

Patch Set 5 : review #17 #

Patch Set 6 : maySet will be better #

Patch Set 7 : [rebase] #

Patch Set 8 : build fix #

Total comments: 2

Patch Set 9 : review #27 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -38 lines) Patch
M third_party/WebKit/Source/core/css/RemoteFontFaceSource.h View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp View 1 2 3 4 5 8 chunks +73 lines, -33 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (16 generated)
Takashi Toyoshima
Sakamoto-san. We used this metrics in the first preliminary survey for the intervention. https://docs.google.com/document/d/1f2tcvW72A9haFkCNsVhKgi1iteNrCRHYA7Y_uIautl4/edit?usp=sharing This ...
4 years, 3 months ago (2016-08-31 11:06:30 UTC) #3
Kunihiko Sakamoto
RemoteFontFaceSource lgtm https://codereview.chromium.org/2289303004/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2289303004/diff/1/tools/metrics/histograms/histograms.xml#newcode65782 tools/metrics/histograms/histograms.xml:65782: +<histogram name="WebFont.DownloadTime.MissedCache.0.Under10KB" units="ms"> You might want to ...
4 years, 3 months ago (2016-09-01 01:33:02 UTC) #4
Takashi Toyoshima
https://codereview.chromium.org/2289303004/diff/1/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2289303004/diff/1/tools/metrics/histograms/histograms.xml#newcode65782 tools/metrics/histograms/histograms.xml:65782: +<histogram name="WebFont.DownloadTime.MissedCache.0.Under10KB" units="ms"> OK. So to make the suffix ...
4 years, 3 months ago (2016-09-01 06:16:03 UTC) #5
Takashi Toyoshima
Requesting OWNERS reviews, +kouhei@ for WebKit/Source/core +isherman@ for tools/metrics
4 years, 3 months ago (2016-09-01 06:17:38 UTC) #7
Takashi Toyoshima
+tkent for WebKit since I remember that kouhei takes a day off today.
4 years, 3 months ago (2016-09-01 07:36:10 UTC) #9
tkent
lgtm
4 years, 3 months ago (2016-09-01 08:03:28 UTC) #10
Ilya Sherman
Hmm, do you need both sets of histograms, or could you drop the existing ones ...
4 years, 3 months ago (2016-09-01 19:18:48 UTC) #11
Takashi Toyoshima
Old one is still useful to understand cache performance. So, yes both we need both ...
4 years, 3 months ago (2016-09-02 03:16:32 UTC) #12
kouhei (in TOK)
https://codereview.chromium.org/2289303004/diff/20001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h File third_party/WebKit/Source/core/css/RemoteFontFaceSource.h (right): https://codereview.chromium.org/2289303004/diff/20001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h#newcode73 third_party/WebKit/Source/core/css/RemoteFontFaceSource.h:73: void recordLoadTimeHistogram(const FontResource*, int duration, bool isLoadedFromNetwork); Can we ...
4 years, 3 months ago (2016-09-02 03:22:20 UTC) #13
Takashi Toyoshima
PTAL Patch Set 4. https://codereview.chromium.org/2289303004/diff/20001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h File third_party/WebKit/Source/core/css/RemoteFontFaceSource.h (right): https://codereview.chromium.org/2289303004/diff/20001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h#newcode73 third_party/WebKit/Source/core/css/RemoteFontFaceSource.h:73: void recordLoadTimeHistogram(const FontResource*, int duration, ...
4 years, 3 months ago (2016-09-02 10:51:00 UTC) #14
Ilya Sherman
On 2016/09/02 03:16:32, toyoshim wrote: > Old one is still useful to understand cache performance. ...
4 years, 3 months ago (2016-09-03 00:21:28 UTC) #15
Takashi Toyoshima
RemoteFontFaceSource was largely modified to address kouhei's point, using enum. ksakamoto@ can you take a ...
4 years, 3 months ago (2016-09-06 05:49:26 UTC) #16
Kunihiko Sakamoto
lgtm % minor comments. Using enum, the lode look cleaner. https://codereview.chromium.org/2289303004/diff/60001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2289303004/diff/60001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode48 ...
4 years, 3 months ago (2016-09-06 18:04:53 UTC) #17
Takashi Toyoshima
https://codereview.chromium.org/2289303004/diff/60001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2289303004/diff/60001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode48 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:48: // Still loading implies coming from network. On 2016/09/06 ...
4 years, 3 months ago (2016-09-07 08:49:09 UTC) #18
Kunihiko Sakamoto
https://codereview.chromium.org/2289303004/diff/60001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2289303004/diff/60001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode72 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:72: bool shouldTriggerWebFontsIntervention(Document* document, FontDisplay display, RemoteFontFaceSource::DataSource dataSource) On 2016/09/07 ...
4 years, 3 months ago (2016-09-07 16:25:42 UTC) #27
Takashi Toyoshima
https://codereview.chromium.org/2289303004/diff/60001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2289303004/diff/60001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode316 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:316: DEFINE_STATIC_LOCAL(CustomCountHistogram, missedCacheLoadErrorHistogram, ("WebFont.MissedCache.DownloadTime.LoadError", 0, 10000, 50)); Good point. > ...
4 years, 3 months ago (2016-09-09 06:25:24 UTC) #28
Takashi Toyoshima
cc: shaochuan@ who may work on adding new variants we discussed here.
4 years, 3 months ago (2016-09-09 09:28:36 UTC) #29
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/2289303004/160001
4 years, 3 months ago (2016-09-12 06:08:40 UTC) #32
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 3 months ago (2016-09-12 10:23:06 UTC) #34
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 10:25:41 UTC) #36
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/364799d5bf4e30dcad82acb246163cbec077d8d7
Cr-Commit-Position: refs/heads/master@{#417907}

Powered by Google App Engine
This is Rietveld 408576698