Bug 1319206 - Run a Telemetry experiment to vet GPU Process on Windows. r=felipe
authorAnthony Hughes <anthony.s.hughes@gmail.com>
Wed, 21 Dec 2016 17:41:06 -0200
changeset 103 a694a95fc5a19ea5034018517c4a92e78ebbec85
parent 102 38ce1b1eea2ce396b3566c878f4f79da3fcbc547
child 104 f1d273401334990ddaf6d907b3753e02a7352b2c
push id79
push userfelipc@gmail.com
push dateWed, 21 Dec 2016 19:42:08 +0000
reviewersfelipe
bugs1319206
Bug 1319206 - Run a Telemetry experiment to vet GPU Process on Windows. r=felipe
experiments/gpu-process-nightly53/code/bootstrap.js
experiments/gpu-process-nightly53/code/install.rdf
experiments/gpu-process-nightly53/experiment.xpi
experiments/gpu-process-nightly53/manifest.json
copy from experiments/skia-windows-nightly/code/bootstrap.js
copy to experiments/gpu-process-nightly53/code/bootstrap.js
--- a/experiments/skia-windows-nightly/code/bootstrap.js
+++ b/experiments/gpu-process-nightly53/code/bootstrap.js
@@ -1,17 +1,17 @@
 let {classes: Cc, interfaces: Ci, utils: Cu} = Components;
 
 Cu.import("resource:///modules/experiments/Experiments.jsm");
 Cu.import("resource://gre/modules/Task.jsm");
 Cu.import("resource://gre/modules/Preferences.jsm");
 
 var gStarted = false;
 
-const kSELF_ID = "skia-windows-nightly@experiments.mozilla.org";
+const kSELF_ID = "gpu-process-nightly53@experiments.mozilla.org";
 const prefs = new Preferences();
 
 function startup() {
   // Seems startup() function is launched twice after install, we're
   // unsure why so far. We only want it to run once.
   if (gStarted) {
     return;
   }
@@ -19,48 +19,48 @@ function startup() {
 
   Task.spawn(function*() {
     let branch = yield Experiments.instance().getExperimentBranch(kSELF_ID);
     if (branch == null) {
       let r = Math.random() * 2;
       if (r < 1) {
         branch = "control";
       } else {
-        branch = "cairo";
-        prefs.set("gfx.content.azure.backends", "direct2d1.1,cairo");
+        branch = "disabled";
+        prefs.set("layers.gpu-process.dev.enabled", false);
       }
       yield Experiments.instance().setExperimentBranch(kSELF_ID, branch);
     } else {
       // Exclude the user if they've manually changed the pref
-      let pref = prefs.get("gfx.content.azure.backends");
+      let pref = prefs.get("layers.gpu-process.dev.enabled");
       let isBranchValid = true;
-      if (branch == "cairo") {
-        isBranchValid = (pref == "direct2d1.1,cairo");
+      if (branch == "disabled") {
+        isBranchValid = (pref == false);
       } else if (branch == "control") {
-        isBranchValid = (pref == "direct2d1.1,skia");
+        isBranchValid = (pref == true);
       }
       if (!isBranchValid) {
-        branch = "user-changed";
+        branch = "usermod";
         yield Experiments.instance().setExperimentBranch(kSELF_ID, branch);
       }
     }
   }).then(
     function() {
     },
     function(e) {
       Cu.reportError("Got error during bootstrap startup: " + e);
     });
 }
 
 function shutdown(reason) {
-  if (reason != APP_SHUTDOWN) {
+  if (reason == ADDON_DISABLE || reason == ADDON_UNINSTALL) {
     // when the add-on is being disabled/uninstalled
-    prefs.reset("gfx.content.azure.backends");
+    prefs.reset("layers.gpu-process.dev.enabled");
   }
 }
 
 function install() {
   // no-op
 }
 
 function uninstall() {
-  prefs.reset("gfx.content.azure.backends");
+  prefs.reset("layers.gpu-process.dev.enabled");
 }
copy from experiments/skia-windows-nightly/code/install.rdf
copy to experiments/gpu-process-nightly53/code/install.rdf
--- a/experiments/skia-windows-nightly/code/install.rdf
+++ b/experiments/gpu-process-nightly53/code/install.rdf
@@ -1,24 +1,24 @@
 <?xml version="1.0" encoding="utf-8"?>
 <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
   <Description about="urn:mozilla:install-manifest">
-    <em:id>skia-windows-nightly@experiments.mozilla.org</em:id>
+    <em:id>gpu-process-nightly53@experiments.mozilla.org</em:id>
     <em:version>1.0.0</em:version>
     <em:type>128</em:type>
     <em:bootstrap>true</em:bootstrap>
     <em:unpack>false</em:unpack>
 
     <!-- Firefox -->
     <em:targetApplication>
       <Description>
         <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
-        <em:minVersion>52.0a1</em:minVersion>
-        <em:maxVersion>52.0a1</em:maxVersion>
+        <em:minVersion>53.0a1</em:minVersion>
+        <em:maxVersion>53.0a1</em:maxVersion>
       </Description>
     </em:targetApplication>
 
     <!-- Front End MetaData -->
-    <em:name>SKIA Content on Windows</em:name>
-    <em:description>Measuring the effect of using SKIA as the default software rendering backend for content.</em:description>
-    <em:aboutURL>https://bugzilla.mozilla.org/show_bug.cgi?id=1299605</em:aboutURL>
+    <em:name>GPU Process on Windows</em:name>
+    <em:description>Measures the impact of enabling GPU Process in Firefox Nightly on Windows</em:description>
+    <em:aboutURL>https://bugzilla.mozilla.org/show_bug.cgi?id=1319206</em:aboutURL>
   </Description>
 </RDF>
copy from experiments/skia-windows-nightly/experiment.xpi
copy to experiments/gpu-process-nightly53/experiment.xpi
index 8ce3f451b2bb6e8cb33fd8bb788a9f5ad1d48efa..af03136bebef3b8c9c5d94089fd65dbe9fbc4a11
GIT binary patch
literal 5417
zc${@u1yCH^u3j7#hf>_3NO70NrMMJ#hr+VByA>(Wg+&%9P_)IZEfjYt?y?jX3Y6jw
z#b588dGCM!KlkQL&P*~VIXRO|GUwA#M?-%C006K76H*zf_wAJcY<vI!OauV@ORK4*
zFUPH_rOXR)4{~;Owc+vdwplR>6q~(&Dw>#3FM8=q)Sq=X&|%QPY8k8uqsSQ$u%o16
zc2UMp<$gV+l^*(yN)7v)=_Pv*b4mPu^K2+`^>$U}(CVsr!u#<yEX?UT|Li{ROnd_6
zRjwGtC$5#0j$up$mexm41gg-uo;4A6FDhRzh3-C49Ro93*Qq*Ax|SU+>Z_z$6si(w
zT2#!)ZoZT}^p6OEuFH>4;~f^_5vRR4eN;e&i0W#-o`^NN2xg*Zion(0UYv6E^An~U
zvD9NlRAoBZBUKZk>2MY3yDY}B(0HD(MJbFDGP)OCq#i2Ijp)Nc^JLK|n^$-Y@d}pV
zoQ0u(xLzwR&)hs79od^N(@y*BW{poRqUSxMKy*N9NO;Ss5@~yguFOR^0{m$6nl%Wu
zD8!Y5EGY^Vv$(3Hs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windows-nightly/manifest.json
+++ b/experiments/gpu-process-nightly53/manifest.json
@@ -1,18 +1,18 @@
 {
   "publish"     : true,
   "priority"    : 2,
-  "name"        : "SKIA Content on Windows",
-  "description" : "Measuring the effect of using SKIA as the default software rendering backend for content.",
-  "info"        : "<p><a href=\"https://bugzilla.mozilla.org/show_bug.cgi?id=1299605\">Related bug</a></p>",
+  "name"        : "GPU Process on Windows",
+  "description" : "Measures the impact of enabling GPU Process in Firefox Nightly on Windows",
+  "info"        : "<p><a href=\"https://bugzilla.mozilla.org/show_bug.cgi?id=1319206\">Related bug</a></p>",
   "manifest"    : {
-    "id"               : "skia-windows-nightly@experiments.mozilla.org",
-    "startTime"        : 1474416000,
-    "endTime"          : 1476241200,
+    "id"               : "gpu-process-nightly53@experiments.mozilla.org",
+    "startTime"        : 1482278400,
+    "endTime"          : 1483574399,
     "maxActiveSeconds" : 1209600,
     "appName"          : ["Firefox"],
     "channel"          : ["nightly"],
-    "minVersion"       : "52.0a1",
-    "maxVersion"       : "52.0a1",
+    "minVersion"       : "53.0a1",
+    "maxVersion"       : "53.0a1",
     "os"               : ["WINNT"]
   }
 }