Bug 1585330 - Add more log in browsertime_pageload.js r?rwood,nalexander draft
authorTarek Ziadé <tarek@mozilla.com>
Tue, 01 Oct 2019 17:03:23 +0200
changeset 2361272 cf0da60d9c58863ed40a64ee68f2bb3326a35326
parent 2360413 345d89faf40e4fbe6bceb0d4b4f57ae222a2978d
child 2361273 891cb1647fd2b1a91512893632ffc1d5944f814b
push id429731
push usertziade@mozilla.com
push dateTue, 01 Oct 2019 15:19:49 +0000
treeherdertry@653248701cce [default view] [failures only]
reviewersrwood, nalexander
bugs1585330
milestone71.0a1
Bug 1585330 - Add more log in browsertime_pageload.js r?rwood,nalexander Summary: Adds log info in browsertime_pageload.js Reviewers: rwood, nalexander Tags: #secure-revision Bug #: 1585330 Differential Revision: https://phabricator.services.mozilla.com/D47784
testing/raptor/browsertime/browsertime_pageload.js
--- a/testing/raptor/browsertime/browsertime_pageload.js
+++ b/testing/raptor/browsertime/browsertime_pageload.js
@@ -1,16 +1,22 @@
 /* eslint-env node */
 
 module.exports = async function(context, commands) {
+  context.log.info('Starting a browsertime pageload');
   let url = context.options.browsertime.url;
   let page_cycles = context.options.browsertime.page_cycles;
   let page_cycle_delay = context.options.browsertime.page_cycle_delay;
 
+  context.log.info('Waiting for %d ms (foreground_delay)', context.options.browsertime.foreground_delay);
   await commands.wait.byTime(context.options.browsertime.foreground_delay);
+  context.log.info('Navigating to about:blank');
   await commands.navigate("about:blank");
 
   for (let count = 0; count < page_cycles; count++) {
+    context.log.info('Cycle %d, waiting for %d ms', count, page_cycle_delay);
     await commands.wait.byTime(page_cycle_delay);
+    context.log.info('Cycle %d, starting the measure', count);
     await commands.measure.start(url);
   }
+  context.log.info('browsertime pageload ended.');
   return true;
 };