Bug 1623492. Expose OS compositor to telemetry.
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Thu, 19 Mar 2020 02:37:21 +0000
changeset 519535 f985871b3e622041babc71f3770275f045ae7f33
parent 519534 f84e7907b6124597453a93b3c09f91dd66847800
child 519536 a5b778477f34ee0e11ba694484f066c2f144518c
child 519646 9f851fcfe33f9a13966a1bf59dc536ee2c8ccd33
push id110553
push userjmuizelaar@mozilla.com
push dateThu, 19 Mar 2020 03:06:28 +0000
treeherderautoland@f985871b3e62 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1623492
milestone76.0a1
first release with
nightly linux32
f985871b3e62 / 76.0a1 / 20200319094444 / files
nightly linux64
f985871b3e62 / 76.0a1 / 20200319094444 / files
nightly mac
f985871b3e62 / 76.0a1 / 20200319094444 / files
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
Bug 1623492. Expose OS compositor to telemetry. Differential Revision: https://phabricator.services.mozilla.com/D67415
gfx/thebes/gfxPlatform.cpp
toolkit/components/telemetry/Scalars.yaml
--- a/gfx/thebes/gfxPlatform.cpp
+++ b/gfx/thebes/gfxPlatform.cpp
@@ -3059,16 +3059,20 @@ void gfxPlatform::InitWebRenderConfig() 
 
   if (gfx::gfxConfig::IsEnabled(gfx::Feature::WEBRENDER_COMPOSITOR)) {
     gfxVars::SetUseWebRenderCompositor(true);
     // Call UserEnable() only for reporting to Decision Log.
     // If feature is enabled by default. It is not reported to Decision Log.
     featureComp.UserEnable("Enabled");
   }
 
+  Telemetry::ScalarSet(
+      Telemetry::ScalarID::GFX_OS_COMPOSITOR,
+      gfx::gfxConfig::IsEnabled(gfx::Feature::WEBRENDER_COMPOSITOR));
+
   // Initialize WebRender partial present config.
   // Partial present is used only when WebRender compositor is not used.
   if (StaticPrefs::gfx_webrender_max_partial_present_rects_AtStartup() > 0) {
     if (UseWebRender()) {
       FeatureState& featurePartial =
           gfxConfig::GetFeature(Feature::WEBRENDER_PARTIAL);
       featurePartial.EnableByDefault();
       if (StaticPrefs::gfx_webrender_picture_caching()) {
--- a/toolkit/components/telemetry/Scalars.yaml
+++ b/toolkit/components/telemetry/Scalars.yaml
@@ -3061,16 +3061,33 @@ gfx:
     notification_emails:
       - gfx-telemetry-alerts@mozilla.com
       - ktaeleman@mozilla.com
     products:
       - 'geckoview_streaming'
     record_in_processes:
       - 'main'
     release_channel_collection: opt-out
+  os_compositor:
+    bug_numbers:
+      - 1623492
+    description: >
+      Boolean indicating whether the os compositor is being used by WebRender.
+      Only collected in the first subsession.
+    expires: never
+    kind: boolean
+    notification_emails:
+      - gfx-telemetry-alerts@mozilla.com
+      - jmuizelaar@mozilla.com
+    products:
+      - 'firefox'
+      - 'geckoview'
+    record_in_processes:
+      - 'main'
+    release_channel_collection: opt-out
 
 # The following section contains the form autofill related scalars.
 formautofill:
   availability:
     bug_numbers:
       - 1386959
     description: A boolean sent once per session to represent whether the formautofill is available in the build
     expires: never