diff --git a/gfx/layers/wr/WebRenderBridgeParent.cpp b/gfx/layers/wr/WebRenderBridgeParent.cpp index 51fca529739f..3346d32a02c6 100644 --- a/gfx/layers/wr/WebRenderBridgeParent.cpp +++ b/gfx/layers/wr/WebRenderBridgeParent.cpp @@ -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; } diff --git a/toolkit/components/telemetry/Scalars.yaml b/toolkit/components/telemetry/Scalars.yaml index 75c30516bde4..e6d9b6d69174 100644 --- a/toolkit/components/telemetry/Scalars.yaml +++ b/toolkit/components/telemetry/Scalars.yaml @@ -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