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

Issue 2289113002: WebFonts: classify memory cache hit case in WebFont.CacheHit metric (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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebFonts: classify memory cache hit case in WebFont.CacheHit metric wasCached() does not contain memory cache hit case. But WebFonts intervention study's results imply memory cache hit case is not minor group, but probably bigger one than Miss group. This patch adds one additional group MemoryHit to WebFoint.CacheHit metric to ensure memory cache hit ratio. Committed: https://crrev.com/265b136995c55d4a1abcf82f8ad24c192d27af24 Cr-Commit-Position: refs/heads/master@{#415783}

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix condition check order to classify correctly #

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

Dependent Patchsets:

Messages

Total messages: 19 (6 generated)
Takashi Toyoshima
Can you take a look?
4 years, 3 months ago (2016-08-30 10:53:24 UTC) #3
Kunihiko Sakamoto
lgtm, thanks for doing this.
4 years, 3 months ago (2016-08-31 03:27:17 UTC) #4
Takashi Toyoshima
Requesting OWNERS reviews. +tkent for WebKit +isherman for metrics
4 years, 3 months ago (2016-08-31 05:11:30 UTC) #6
tkent
https://codereview.chromium.org/2289113002/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2289113002/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode273 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:273: : isLoadedFromMemoryCache ? MemoryHit Why don't you refer to ...
4 years, 3 months ago (2016-08-31 05:21:30 UTC) #7
Takashi Toyoshima
https://codereview.chromium.org/2289113002/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2289113002/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode273 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:273: : isLoadedFromMemoryCache ? MemoryHit Because here is inside an ...
4 years, 3 months ago (2016-08-31 05:31:50 UTC) #8
Takashi Toyoshima
Let me change a little https://codereview.chromium.org/2289113002/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2289113002/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode271 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:271: int histogramValue = font->url().protocolIsData() ...
4 years, 3 months ago (2016-08-31 05:38:09 UTC) #9
Takashi Toyoshima
PTAL. Patch Set 2 changes the condition check order to classify cache hit cases correctly. ...
4 years, 3 months ago (2016-08-31 05:43:17 UTC) #10
Kunihiko Sakamoto
still lgtm
4 years, 3 months ago (2016-08-31 05:44:33 UTC) #11
tkent
lgtm https://codereview.chromium.org/2289113002/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2289113002/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode273 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:273: : isLoadedFromMemoryCache ? MemoryHit On 2016/08/31 at 05:31:50, ...
4 years, 3 months ago (2016-08-31 06:21:33 UTC) #12
Ilya Sherman
histograms.xml lgtm
4 years, 3 months ago (2016-08-31 19:11:08 UTC) #13
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/2289113002/20001
4 years, 3 months ago (2016-08-31 20:35:10 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-08-31 22:30:28 UTC) #17
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 22:32:40 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/265b136995c55d4a1abcf82f8ad24c192d27af24
Cr-Commit-Position: refs/heads/master@{#415783}

Powered by Google App Engine
This is Rietveld 408576698