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

Issue 2359493004: FontLoadHistograms: classify as memory cache hit if FontResource loading not triggered (Closed)

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

Description

FontLoadHistograms: classify as memory cache hit if FontResource loading not triggered In cases where FontResource loading is already started by another RemoteFontFaceSource instance, |m_loadStartTime| is not set and result in invalid load time records. Since we are collecting load times from the beginning of the request, we classify this case as memory cache hit and don't record load time. Committed: https://crrev.com/63b083a06f0b83985eb39d1bf7d9543d942c82c7 Cr-Commit-Position: refs/heads/master@{#422006}

Patch Set 1 #

Total comments: 3

Patch Set 2 : DCHECK_NE #

Patch Set 3 : fix cases when beginLoadIfNeeded() is not called #

Total comments: 2

Patch Set 4 : fix #15, move all recordInterventionResult to fontLoaded #

Patch Set 5 : use isLoadStartedCalled() in longLimitExceeded() #

Total comments: 2

Patch Set 6 : #20 #

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

Messages

Total messages: 33 (17 generated)
Shao-Chuan Lee
PTAL
4 years, 3 months ago (2016-09-21 08:43:50 UTC) #2
Kunihiko Sakamoto
lgtm
4 years, 3 months ago (2016-09-21 09:23:51 UTC) #3
Shao-Chuan Lee
kouhei@: PTAL as OWNERS, thanks
4 years, 3 months ago (2016-09-21 09:25:42 UTC) #5
kouhei (in TOK)
lgtm % below https://codereview.chromium.org/2359493004/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2359493004/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode282 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:282: DCHECK(m_loadStartTime); using DCHECK on double scares ...
4 years, 3 months ago (2016-09-23 01:34:00 UTC) #8
Shao-Chuan Lee
https://codereview.chromium.org/2359493004/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2359493004/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode282 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:282: DCHECK(m_loadStartTime); On 2016/09/23 01:33:59, kouhei wrote: > using DCHECK ...
4 years, 3 months ago (2016-09-23 01:47:19 UTC) #9
Shao-Chuan Lee
Previous fix only deal with cases when |m_font| is pending while beginLoadIfNeeded() is called from ...
4 years, 3 months ago (2016-09-23 06:45:57 UTC) #14
Kunihiko Sakamoto
https://codereview.chromium.org/2359493004/diff/40001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2359493004/diff/40001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode287 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:287: m_dataSource = FromMemoryCache; Before this patch, we only had ...
4 years, 3 months ago (2016-09-23 07:39:19 UTC) #15
Shao-Chuan Lee
I noticed that m_dataSource may also be set in FontLoadHistograms::longLimitExceeded(), which will cause problems if ...
4 years, 3 months ago (2016-09-23 08:41:06 UTC) #16
Kunihiko Sakamoto
On 2016/09/23 08:41:06, Shao-Chuan Lee wrote: > I noticed that m_dataSource may also be set ...
4 years, 3 months ago (2016-09-23 09:19:05 UTC) #17
Shao-Chuan Lee
It looks okay to determine |m_dataSource| in longLimitExceeded() before recordInterventionResult() instead of moving it away.
4 years, 2 months ago (2016-09-29 09:01:36 UTC) #19
Kunihiko Sakamoto
lgtm % comment https://codereview.chromium.org/2359493004/diff/80001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2359493004/diff/80001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode257 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:257: maySetDataSource(isLoadStartedCalled() ? FromNetwork : FromMemoryCache); Can ...
4 years, 2 months ago (2016-09-29 09:19:26 UTC) #20
Shao-Chuan Lee
https://codereview.chromium.org/2359493004/diff/80001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2359493004/diff/80001/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode257 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:257: maySetDataSource(isLoadStartedCalled() ? FromNetwork : FromMemoryCache); On 2016/09/29 09:19:26, Kunihiko ...
4 years, 2 months ago (2016-09-29 09:31:43 UTC) #21
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/2359493004/100001
4 years, 2 months ago (2016-09-30 01:13:49 UTC) #28
kouhei (in TOK)
lgtm % comment https://codereview.chromium.org/2359493004/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp File third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp (right): https://codereview.chromium.org/2359493004/diff/1/third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp#newcode282 third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp:282: DCHECK(m_loadStartTime); On 2016/09/23 01:47:19, Shao-Chuan Lee ...
4 years, 2 months ago (2016-09-30 01:18:35 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-09-30 01:19:31 UTC) #31
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 01:23:05 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/63b083a06f0b83985eb39d1bf7d9543d942c82c7
Cr-Commit-Position: refs/heads/master@{#422006}

Powered by Google App Engine
This is Rietveld 408576698