Bug 1547074 - [raptor] Rename measure.js and benchmark-relay.js. r=rwood
authorHenrik Skupin <mail@hskupin.info>
Fri, 26 Apr 2019 05:13:42 +0000
changeset 530235 889395762462e00f88682a64bcb2dbecc6eb26c8
parent 530234 5f1a827dc2ede5ee5fbadf10136decc7abade73b
child 530236 2e7759e843acce4d577a8fe74e10670c098c5d54
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrwood
bugs1547074
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1547074 - [raptor] Rename measure.js and benchmark-relay.js. r=rwood Differential Revision: https://phabricator.services.mozilla.com/D28896
testing/raptor/webext/raptor/benchmark-relay.js
testing/raptor/webext/raptor/benchmark.js
testing/raptor/webext/raptor/manifest.json
testing/raptor/webext/raptor/measure.js
testing/raptor/webext/raptor/pageload.js
rename from testing/raptor/webext/raptor/benchmark-relay.js
rename to testing/raptor/webext/raptor/benchmark.js
--- a/testing/raptor/webext/raptor/benchmark-relay.js
+++ b/testing/raptor/webext/raptor/benchmark.js
@@ -1,26 +1,26 @@
 /* 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/. */
 
 // receives result from benchmark and relays onto our background runner
 
 function receiveMessage(event) {
-  console.log("raptor benchmark-relay received message");
+  console.log("raptor benchmark received message");
   console.log(event.data);
   // raptor benchmark message data [0] is raptor tag, [1] is benchmark
   // name, and the rest is actual benchmark results that we want to fw
   if (event.data[0] == "raptor-benchmark") {
     sendResult(event.data[1], event.data.slice(2));
   }
 }
 
 function sendResult(_type, _value) {
   // send result back to background runner script
   console.log(`sending result back to runner: ${_type} ${_value}`);
   chrome.runtime.sendMessage({"type": _type, "value": _value}, function(response) {
     console.log(response.text);
   });
 }
 
-console.log("raptor benchmark-relay content loaded");
+console.log("raptor benchmark content loaded");
 window.addEventListener("message", receiveMessage);
--- a/testing/raptor/webext/raptor/manifest.json
+++ b/testing/raptor/webext/raptor/manifest.json
@@ -43,30 +43,30 @@
                   "*://*.vice.com/*",
                   "*://*.web.de/*",
                   "*://*.wikia.com/*",
                   "*://*.wikipedia.org/*",
                   "*://*.yahoo.com/*",
                   "*://*.youtube.com/*",
                   "*://*.yandex.ru/*"
                   ],
-      "js": ["measure.js"],
+      "js": ["pageload.js"],
       "run_at": "document_end"
     },
     {
       "matches": ["*://*/Speedometer/index.html*",
                   "*://*/StyleBench/*",
                   "*://*/MotionMark/*",
                   "*://*/SunSpider/*",
                   "*://*/webaudio/*",
                   "*://*/unity-webgl/index.html*",
                   "*://*/wasm-misc/index.html*",
                   "*://*/wasm-godot/index.html*",
                   "*://*/assorted-dom/assorted/results.html*"],
-      "js": ["benchmark-relay.js"],
+      "js": ["benchmark.js"],
       "run_at": "document_end"
     }
   ],
   "browser_action": {
     "browser_style": true,
     "default_icon": "icon.png",
     "default_title": "Raptor LOADED"
   },
rename from testing/raptor/webext/raptor/measure.js
rename to testing/raptor/webext/raptor/pageload.js