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

Issue 2095293002: WebFonts intervention: Add metrics only for miss-cached loading (Closed)

Created:
4 years, 5 months ago by Takashi Toyoshima
Modified:
4 years, 5 months ago
CC:
chromium-reviews, tyoshino+watch_chromium.org, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, gavinp+loader_chromium.org, darktears, blink-reviews, loading-reviews+fetch_chromium.org, Nate Chapin, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebFonts intervention: Add metrics only for miss-cached loading Now the intervention is triggered on slow networks, but it also triggered even if data come from the http (disk) or memory caches. Ideally, we should not trigger the intervention in such cases, but at this point, we take metrics that are counted only when data come from network so that we can evaluate the NQE's signal accuracy. Also this patch stop triggering the intervention when data come from memory cache because this check is trivial unlike disk cache. BUG=578029 Committed: https://crrev.com/d1023bafc3daf0d9ed5f47f5f781ea0888f57bf7 Cr-Commit-Position: refs/heads/master@{#402416}

Patch Set 1 #

Patch Set 2 : v2 #

Patch Set 3 : check memory cache too #

Total comments: 8

Patch Set 4 : kinuko review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -29 lines) Patch
M third_party/WebKit/Source/core/css/RemoteFontFaceSource.h View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp View 1 2 3 5 chunks +33 lines, -27 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
Takashi Toyoshima
ptal
4 years, 5 months ago (2016-06-27 08:12:04 UTC) #3
Takashi Toyoshima
https://codereview.chromium.org/2095293002/diff/40001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2095293002/diff/40001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode120 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:120: m_histograms.fontLoaded(m_isInterventionTriggered, m_isLoadedFromMemoryCache || m_font->response().wasCached()); wasCached() returns disk cache result. ...
4 years, 5 months ago (2016-06-27 08:55:10 UTC) #4
Kunihiko Sakamoto
https://codereview.chromium.org/2095293002/diff/40001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2095293002/diff/40001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode46 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:46: return false; So, we no longer trigger the intervention ...
4 years, 5 months ago (2016-06-27 09:07:45 UTC) #5
Takashi Toyoshima
https://codereview.chromium.org/2095293002/diff/40001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2095293002/diff/40001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode46 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:46: return false; On 2016/06/27 09:07:45, Kunihiko Sakamoto wrote: > ...
4 years, 5 months ago (2016-06-27 09:39:40 UTC) #8
Kunihiko Sakamoto
lgtm
4 years, 5 months ago (2016-06-27 09:42:48 UTC) #9
Takashi Toyoshima
This change was reviewed by ksakamoto. Kinuko, could you take a owner review?
4 years, 5 months ago (2016-06-27 10:25:47 UTC) #11
kinuko
lgtm % nits https://codereview.chromium.org/2095293002/diff/40001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h File third_party/WebKit/Source/core/css/RemoteFontFaceSource.h (right): https://codereview.chromium.org/2095293002/diff/40001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h#newcode67 third_party/WebKit/Source/core/css/RemoteFontFaceSource.h:67: void fontLoaded(bool isInterventionTriggered, bool isLoadedFromCache); usually ...
4 years, 5 months ago (2016-06-27 12:06:25 UTC) #12
tbansal1
toyoshim, thanks for doing this. One question below. https://codereview.chromium.org/2095293002/diff/40001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2095293002/diff/40001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode330 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:330: if ...
4 years, 5 months ago (2016-06-27 15:54:13 UTC) #14
Takashi Toyoshima
https://codereview.chromium.org/2095293002/diff/40001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h File third_party/WebKit/Source/core/css/RemoteFontFaceSource.h (right): https://codereview.chromium.org/2095293002/diff/40001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.h#newcode74 third_party/WebKit/Source/core/css/RemoteFontFaceSource.h:74: void recordInterventionResult(bool triggered, bool loadedFromCache); On 2016/06/27 12:06:24, kinuko ...
4 years, 5 months ago (2016-06-28 05:38:18 UTC) #15
Takashi Toyoshima
https://codereview.chromium.org/2095293002/diff/40001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2095293002/diff/40001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode330 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:330: if (!loadedFromCache) That's good point. Let me check if ...
4 years, 5 months ago (2016-06-28 05:42:53 UTC) #16
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/2095293002/60001
4 years, 5 months ago (2016-06-28 05:43:24 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-06-28 06:55:51 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-06-28 06:57:47 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d1023bafc3daf0d9ed5f47f5f781ea0888f57bf7
Cr-Commit-Position: refs/heads/master@{#402416}

Powered by Google App Engine
This is Rietveld 408576698