Bug 1797975 - Add telemetry for skipped composites. r=bas

Differential Revision: https://phabricator.services.mozilla.com/D162305
This commit is contained in:
Nicolas Silva 2022-12-13 14:49:21 +00:00
parent 3277b6ef89
commit d871dfba00
2 changed files with 20 additions and 0 deletions

View File

@ -2251,6 +2251,9 @@ void WebRenderBridgeParent::CompositeToTarget(VsyncId aId,
PROFILER_MARKER_TEXT("SkippedComposite", GRAPHICS,
MarkerInnerWindowId(innerWindowId),
"Too many pending frames");
Telemetry::ScalarAdd(Telemetry::ScalarID::GFX_SKIPPED_COMPOSITES, 1);
return;
}

View File

@ -3926,6 +3926,23 @@ gfx.feature:
release_channel_collection: opt-out
gfx:
skipped_composites:
bug_numbers:
- 1797975
description: >
Number of skipped composites, happening when rendering is too slow to keep up with content.
keyed: false
kind: uint
expires: "never"
notification_emails:
- gfx-telemetry-alerts@mozilla.com
- perf-telemetry-alerts@mozilla.com
products:
- 'firefox'
- 'fennec'
record_in_processes:
- 'main'
- 'gpu'
compositor:
bug_numbers:
- 1594145