Add logging for fallback fonts
This CL is the help understanding the jank caused in
RenderTextHarfBuzz::ShapeRuns
It seems that for some cases, getting the fallback fonts can be really
slow. We know this can be related to the fonts, or to it's substitution.
This CL is adding a trace event with the following information. The goal
is to collect a few example from slow-reports and try to explain the
high latencies.
Title QueryLinkedFontsFromRegistry
...
Args
results
"Original font: Segoe UI
fallback: 'Tahoma' 'TAHOMA.TTF'
fallback: 'Meiryo UI' 'MEIRYO.TTC'
fallback: 'Meiryo UI' 'MEIRYO.TTC'
fallback: 'MS UI Gothic' 'MSGOTHIC.TTC'
fallback: 'Microsoft JhengHei UI' 'MSJH.TTC'
fallback: 'Microsoft JhengHei UI' 'MSJH.TTC'
fallback: 'Microsoft YaHei UI' 'MSYH.TTC'
fallback: 'Microsoft YaHei UI' 'MSYH.TTC'
fallback: 'Malgun Gothic' 'MALGUN.TTF'
fallback: 'Malgun Gothic' 'MALGUN.TTF'
fallback: 'PMingLiU' 'MINGLIU.TTC'
fallback: 'SimSun' 'SIMSUN.TTC'
fallback: 'Gulim' 'GULIM.TTC'
fallback: 'Yu Gothic UI' 'YUGOTHM.TTC'
fallback: 'Yu Gothic UI' 'YUGOTHM.TTC'
fallback: 'Segoe UI Symbol' 'SEGUISYM.TTF'
resolved: 'Tahoma'
resolved: 'Arial'
resolved: 'Arial'
resolved: 'MS UI Gothic'
resolved: 'Microsoft JhengHei UI'
resolved: 'Microsoft YaHei UI'
resolved: 'Malgun Gothic'
resolved: 'Arial'
resolved: 'SimSun'
resolved: 'Arial'
resolved: 'Yu Gothic UI'
resolved: 'Segoe UI Symbol'
"
R=asvitkine@chromium.org
Bug: 894459
Change-Id: I0c3f1b9e3404b4a84e331d8842cfbc1311d9f58b
Reviewed-on: https://chromium-review.googlesource.com/c/1302865Reviewed-by:
Alexei Svitkine <asvitkine@chromium.org>
Commit-Queue: Etienne Bergeron <etienneb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#603345}
Showing
Please register or sign in to comment