Bug 1331915 Add Telemetry probe to Graphite library usage r=jfkthame

MozReview-Commit-ID: 1aU5ddQoLnV

--HG--
extra : rebase_source : 0a23e5a49508d931b4401f20f7a9454bb12e260e
This commit is contained in:
Tom Ritter 2017-04-28 01:33:04 -05:00
Родитель 0f97eac300
Коммит 124e75c660
2 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -2712,6 +2712,7 @@ gfxFont::ShapeText(DrawTarget *aDrawTarget,
if (gfxPlatform::GetPlatform()->UseGraphiteShaping()) {
if (!mGraphiteShaper) {
mGraphiteShaper = MakeUnique<gfxGraphiteShaper>(this);
Telemetry::ScalarAdd(Telemetry::ScalarID::BROWSER_USAGE_GRAPHITE, 1);
}
ok = mGraphiteShaper->ShapeText(aDrawTarget, aText, aOffset, aLength,
aScript, aVertical, aRounding,

Просмотреть файл

@ -201,6 +201,21 @@ browser.engagement.navigation:
record_in_processes:
- 'main'
# The following section contains the browser usage scalars.
browser.usage:
graphite:
bug_numbers:
- 1331915
description: >
The number of times a graphite2 font has been loaded.
expires: "60"
kind: uint
notification_emails:
- tom@mozilla.com
release_channel_collection: opt-in
record_in_processes:
- 'all'
# This section is for probes used to measure use of the Webextensions storage.sync API.
storage.sync.api.usage:
extensions_using: