Update the Animometer patch and plan files
authorjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Apr 2016 03:57:01 +0000 (03:57 +0000)
committerjonlee@apple.com <jonlee@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Apr 2016 03:57:01 +0000 (03:57 +0000)
https://bugs.webkit.org/show_bug.cgi?id=156263

Reviewed by Ryosuke Niwa.

Measure the latest set of tests by updating the plan revision to r199134.

* Scripts/webkitpy/benchmark_runner/data/patches/Animometer.patch: Update to run the master suite only.
* Scripts/webkitpy/benchmark_runner/data/plans/animometer.plan: Update to use the release page instead
of the developer page.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@199146 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/Scripts/webkitpy/benchmark_runner/data/patches/Animometer.patch
Tools/Scripts/webkitpy/benchmark_runner/data/plans/animometer.plan

index 060a428..860da07 100644 (file)
@@ -1,3 +1,16 @@
+2016-04-06  Jon Lee  <jonlee@apple.com>
+
+        Update the Animometer patch and plan files
+        https://bugs.webkit.org/show_bug.cgi?id=156263
+
+        Reviewed by Ryosuke Niwa.
+
+        Measure the latest set of tests by updating the plan revision to r199134.
+
+        * Scripts/webkitpy/benchmark_runner/data/patches/Animometer.patch: Update to run the master suite only.
+        * Scripts/webkitpy/benchmark_runner/data/plans/animometer.plan: Update to use the release page instead
+        of the developer page.
+
 2016-04-06  Saam barati  <sbarati@apple.com>
 
         jsc-layout-tests.yaml/js/script-tests/regress-141098.js failing on Yosemite Debug after r198989
index ddc0487..592cc85 100644 (file)
@@ -1,11 +1,11 @@
-diff --git a/PerformanceTests/Animometer/resources/debug-runner/animometer.js b/PerformanceTests/Animometer/resources/debug-runner/animometer.js
-index ffc71ba..02a5d49 100644
---- a/resources/debug-runner/animometer.js
-+++ b/resources/debug-runner/animometer.js
-@@ -119,6 +119,57 @@ Utilities.extendObject(window.benchmarkRunnerClient, {
+diff --git a/resources/runner/animometer.js b/resources/runner/animometer.js
+index b20a1c9..e434e89 100644
+--- a/resources/runner/animometer.js
++++ b/resources/runner/animometer.js
+@@ -320,6 +320,57 @@ window.benchmarkRunnerClient = {
+     didFinishLastIteration: function()
      {
-         this.progressBar.incrementRange();
-         this.results.calculateScore(testData);
+         benchmarkController.showResults();
 +    },
 +
 +    _computeTestReport: function(testName, testResults)
@@ -58,99 +58,14 @@ index ffc71ba..02a5d49 100644
 +        }
 +        xhr.send(results);
      }
- });
+ };
 
-@@ -255,10 +307,10 @@ window.suitesManager =
-         startButton.disabled = true;
-     },
-
--    _onChangeSuiteCheckbox: function(event)
-+    _onChangeSuiteCheckbox: function(suiteCheckbox)
-     {
--        var selected = event.target.checked;
--        event.target.testsElements.forEach(function(testElement) {
-+        var selected = suiteCheckbox.checked;
-+        suiteCheckbox.testsElements.forEach(function(testElement) {
-             var testCheckbox = this._checkboxElement(testElement);
-             testCheckbox.checked = selected;
-         }, this);
-@@ -279,7 +331,9 @@ window.suitesManager =
-
-         var suiteCheckbox = Utilities.createElement("input", { type: "checkbox" }, label);
-         suiteCheckbox.suite = suite;
--        suiteCheckbox.onchange = this._onChangeSuiteCheckbox.bind(this);
-+        suiteCheckbox.onchange = function(event) {
-+            this._onChangeSuiteCheckbox(event.target);
-+        }.bind(this);
-         suiteCheckbox.testsElements = [];
-
-         label.appendChild(document.createTextNode(" " + suite.name));
-@@ -428,45 +482,8 @@ window.suitesManager =
- Utilities.extendObject(window.benchmarkController, {
+@@ -357,7 +408,7 @@ window.sectionsManager =
+ window.benchmarkController = {
      initialize: function()
      {
--        document.forms["benchmark-options"].addEventListener("change", benchmarkController.onBenchmarkOptionsChanged, true);
--        document.forms["graph-type"].addEventListener("change", benchmarkController.onGraphTypeChanged, true);
--        document.forms["time-graph-options"].addEventListener("change", benchmarkController.onTimeGraphOptionsChanged, true);
--        document.forms["complexity-graph-options"].addEventListener("change", benchmarkController.onComplexityGraphOptionsChanged, true);
--        optionsManager.updateUIFromLocalStorage();
-         suitesManager.createElements();
--        suitesManager.updateUIFromLocalStorage();
--        suitesManager.updateDisplay();
--        suitesManager.updateEditsElementsState();
--
--        var dropTarget = document.getElementById("drop-target");
--        function stopEvent(e) {
--            e.stopPropagation();
--            e.preventDefault();
--        }
--        dropTarget.addEventListener("dragenter", stopEvent, false);
--        dropTarget.addEventListener("dragover", stopEvent, false);
--        dropTarget.addEventListener("dragleave", stopEvent, false);
--        dropTarget.addEventListener("drop", function (e) {
--            e.stopPropagation();
--            e.preventDefault();
--
--            if (!e.dataTransfer.files.length)
--                return;
--
--            var file = e.dataTransfer.files[0];
--
--            var reader = new FileReader();
--            reader.filename = file.name;
--            reader.onload = function(e) {
--                var run = JSON.parse(e.target.result);
--                benchmarkRunnerClient.results = new ResultsDashboard(run.options, run.data);
--                benchmarkController.showResults();
--            };
--
--            reader.readAsText(file);
--            document.title = "File: " + reader.filename;
--        }, false);
--
+-        benchmarkController.addOrientationListenerIfNecessary();
 +        setTimeout(benchmarkController.startBenchmark.bind(benchmarkController), 3000);
      },
 
-     onBenchmarkOptionsChanged: function(event)
-@@ -482,7 +499,20 @@ Utilities.extendObject(window.benchmarkController, {
-
-     startBenchmark: function()
-     {
--        var options = optionsManager.updateLocalStorageFromUI();
-+        var options = {
-+            "test-interval": 20,
-+            "display": "minimal",
-+            "controller": "ramp",
-+            "kalman-process-error": 1,
-+            "kalman-measurement-error": 4,
-+            "time-measurement": "performance"
-+        };
-+
-+        for (var suiteIndex = 0; suiteIndex < 5; ++suiteIndex) {
-+            var suiteCheckbox = document.querySelector("label[for=suite-" + suiteIndex + "] input[type=checkbox]");
-+            suiteCheckbox.checked = true;
-+            suitesManager._onChangeSuiteCheckbox(suiteCheckbox);
-+        }
-         var suites = suitesManager.updateLocalStorageFromUI();
-         this._startBenchmark(suites, options, "running-test");
-     },
+     addOrientationListenerIfNecessary: function() {
index 490fa65..d8c6611 100644 (file)
@@ -1,8 +1,8 @@
 {
     "timeout": 1800,
     "count": 1,
-    "svn_source": "https://svn.webkit.org/repository/webkit/trunk/PerformanceTests/Animometer/@r197652",
+    "svn_source": "https://svn.webkit.org/repository/webkit/trunk/PerformanceTests/Animometer/@r199134",
     "benchmark_patch": "data/patches/Animometer.patch",
-    "entry_point": "developer.html",
+    "entry_point": "index.html",
     "output_file": "animometer.result"
 }