Bug 1356652 - Add Speedometer files to the PGO training list; r=ted draft
authorDavid Major <dmajor@mozilla.com>
Fri, 25 Aug 2017 13:24:01 -0700
changeset 654403 6557a09e10fc265e62498ed60b7b7d471f5e6269
parent 654402 d0574793b0026d07a20a11893a82066d8bfe153e
child 728560 8f9cfec80a68e99a726be59c4021a09f59598f77
push id76567
push usergszorc@mozilla.com
push dateMon, 28 Aug 2017 18:53:34 +0000
reviewersted
bugs1356652
milestone57.0a1
Bug 1356652 - Add Speedometer files to the PGO training list; r=ted MozReview-Commit-ID: 9Ei8p0t1JbB
build/pgo/index.html
--- a/build/pgo/index.html
+++ b/build/pgo/index.html
@@ -1,15 +1,16 @@
 <script>
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
  var list = 
      [
+  "js-input/speedometer/index.html",
   "blueprint/sample.html",
   "blueprint/forms.html",
   "blueprint/grid.html",
   "blueprint/elements.html",
   "js-input/3d-thingy.html",
   "js-input/crypto-otp.html",
   "js-input/sunspider/3d-cube.html",
   "js-input/sunspider/3d-morph.html",
@@ -33,25 +34,29 @@
   "js-input/sunspider/math-spectral-norm.html",
   "js-input/sunspider/regexp-dna.html",
   "js-input/sunspider/string-base64.html",
   "js-input/sunspider/string-fasta.html",
   "js-input/sunspider/string-tagcloud.html",
   "js-input/sunspider/string-unpack-code.html",
   "js-input/sunspider/string-validate-input.html"
      ];
- var interval = 1000;
+ var defaultInterval = 2000;
  var idx = 0;
  var w;
  
  window.onload = function () {
      w = window.open("about:blank");
-     window.setTimeout(loadURL, interval); 
+     window.setTimeout(loadURL, defaultInterval);
  };
  function loadURL () {
+     var interval = defaultInterval;
+     if (idx == 0) {
+         interval = 90000;
+     }
      w.close();
      w = window.open(list[idx++]);
      if (idx < list.length) {
      window.setTimeout(loadURL, interval);
      } else {
          window.setTimeout(Quitter.quit, interval);
      }
  }