Bug 1500074 - Add metrics test for jsdebugger;r=ochameau
authorJulian Descottes <jdescottes@mozilla.com>
Wed, 13 Feb 2019 15:46:38 +0000
changeset 458916 b635fbf484e4
parent 458915 785a3ad7dc4f
child 458917 a091f6b58aba
push id35551
push usershindli@mozilla.com
push dateWed, 13 Feb 2019 21:34:09 +0000
treeherdermozilla-central@08f794a4928e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersochameau
bugs1500074
milestone67.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 1500074 - Add metrics test for jsdebugger;r=ochameau Depends on D19639 Differential Revision: https://phabricator.services.mozilla.com/D19640
devtools/client/framework/moz.build
devtools/client/framework/test/metrics/browser_metrics_debugger.ini
devtools/client/framework/test/metrics/browser_metrics_debugger.js
--- a/devtools/client/framework/moz.build
+++ b/devtools/client/framework/moz.build
@@ -1,16 +1,17 @@
 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
 # vim: set filetype=python:
 # 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/.
 
 BROWSER_CHROME_MANIFESTS += [
     'test/browser.ini',
+    'test/metrics/browser_metrics_debugger.ini',
     'test/metrics/browser_metrics_inspector.ini',
     'test/metrics/browser_metrics_netmonitor.ini',
     'test/metrics/browser_metrics_webconsole.ini',
 ]
 XPCSHELL_TESTS_MANIFESTS += ['test/unit/xpcshell.ini']
 
 DIRS += [
     'components',
copy from devtools/client/framework/test/metrics/browser_metrics_netmonitor.ini
copy to devtools/client/framework/test/metrics/browser_metrics_debugger.ini
--- a/devtools/client/framework/test/metrics/browser_metrics_netmonitor.ini
+++ b/devtools/client/framework/test/metrics/browser_metrics_debugger.ini
@@ -3,10 +3,10 @@ tags = devtools
 subsuite = devtools
 support-files =
   head.js
   !/devtools/client/shared/test/shared-head.js
   !/devtools/client/shared/test/telemetry-test-helpers.js
 
 # Each metrics tests is loaded in a separate .ini file. This way the test is executed
 # individually, without any other test being executed before or after.
-[browser_metrics_netmonitor.js]
+[browser_metrics_debugger.js]
 skip-if = os != 'linux' || debug || asan # Results should be platform agnostic - only run on linux64-opt
copy from devtools/client/framework/test/metrics/browser_metrics_netmonitor.js
copy to devtools/client/framework/test/metrics/browser_metrics_debugger.js
--- a/devtools/client/framework/test/metrics/browser_metrics_netmonitor.js
+++ b/devtools/client/framework/test/metrics/browser_metrics_debugger.js
@@ -4,28 +4,28 @@
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
 "use strict";
 
 /* import-globals-from ../../../shared/test/shared-head.js */
 
 /**
  * This test records the number of modules loaded by DevTools, as well as the total count
- * of characters in those modules, when opening the netmonitor. These metrics are
+ * of characters in those modules, when opening the debugger. These metrics are
  * retrieved by perfherder via logs.
  */
 
-const TEST_URL = "data:text/html;charset=UTF-8,<div>Netmonitor modules load test</div>";
+const TEST_URL = "data:text/html;charset=UTF-8,<div>Debugger modules load test</div>";
 
 add_task(async function() {
-  const toolbox = await openNewTabAndToolbox(TEST_URL, "netmonitor");
+  const toolbox = await openNewTabAndToolbox(TEST_URL, "jsdebugger");
   const panel = toolbox.getCurrentPanel();
 
-  // Retrieve the browser loader dedicated to the Netmonitor.
-  const netmonitorLoader = panel.panelWin.getBrowserLoaderForWindow();
-  const loaders = [loader.provider.loader, netmonitorLoader.loader];
+  // Retrieve the browser loader dedicated to the Debugger.
+  const debuggerLoader = panel.panelWin.getBrowserLoaderForWindow();
+  const loaders = [loader.provider.loader, debuggerLoader.loader];
 
   runMetricsTest({
-    filterString: "devtools/client/netmonitor",
+    filterString: "devtools/client/debugger",
     loaders,
-    panelName: "netmonitor",
+    panelName: "debugger",
   });
 });