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

Issue 2751163002: Report UseCounter metric when observing NotDef glyphs (Closed)

Created:
3 years, 9 months ago by drott
Modified:
3 years, 7 months ago
CC:
ajuma+watch_chromium.org, darktears, apavlov+blink_chromium.org, asvitkine+watch_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-frames_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, fmalita+watch_chromium.org, jbroman, Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, sascha1, Stephen Chennney
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Report new UseCounter metric when observing NotDef glyphs When shaping fails to find at least one glyph, report this as a new UseCounter metric "FontShapingNotDefGlyphObserved" for the current document, which we can access via FontSelector. Measuring it as a ratio against all UseCounter events should help us evaluate how frequently .notdef glyphs occur in general. A separate histogram to be added later will help find out for which characters or graphemes specifically we fail to find glyphs for. BUG=699578 Review-Url: https://codereview.chromium.org/2751163002 Cr-Commit-Position: refs/heads/master@{#470917} Committed: https://chromium.googlesource.com/chromium/src/+/a3976985653410d2d753c268f8085873b6ed4a56

Patch Set 1 #

Patch Set 2 : Don't insist on having a FontSelector #

Patch Set 3 : Remove cross-Blink rename merge artifacts #

Patch Set 4 : Relax num_glyphs assertion, not feasible on Mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -15 lines) Patch
M third_party/WebKit/Source/core/css/CSSFontSelector.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSFontSelector.cpp View 1 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/UseCounter.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/Font.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/Font.cpp View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/FontSelector.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.cpp View 1 2 3 6 chunks +10 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/FontTestHelpers.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 37 (24 generated)
drott
3 years, 9 months ago (2017-03-15 17:40:54 UTC) #4
Mike West
The crashes look relevant. :) Adding the use counter and the associated histogram entry LGTM, ...
3 years, 9 months ago (2017-03-16 06:07:11 UTC) #7
drott
On 2017/03/16 at 06:07:11, mkwst wrote: > The crashes look relevant. :) > Adding the ...
3 years, 9 months ago (2017-03-16 07:56:30 UTC) #8
eae
LGTM
3 years, 9 months ago (2017-03-16 22:28:37 UTC) #9
jochen (gone - plz use gerrit)
I guess with Mike's and Emil's review you're already covered?
3 years, 9 months ago (2017-03-22 10:01:57 UTC) #11
drott
On 2017/03/22 at 10:01:57, jochen wrote: > I guess with Mike's and Emil's review you're ...
3 years, 9 months ago (2017-03-22 15:06:22 UTC) #12
szager1
lgtm
3 years, 7 months ago (2017-05-10 09:51:17 UTC) #22
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/2751163002/60001
3 years, 7 months ago (2017-05-10 09:52:14 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/449899)
3 years, 7 months ago (2017-05-10 12:56:58 UTC) #28
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/2751163002/60001
3 years, 7 months ago (2017-05-10 15:04:08 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/450254)
3 years, 7 months ago (2017-05-10 17:41:51 UTC) #32
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/2751163002/60001
3 years, 7 months ago (2017-05-11 08:43:23 UTC) #34
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 11:24:19 UTC) #37
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/a3976985653410d2d753c268f808...

Powered by Google App Engine
This is Rietveld 408576698