Bug 1585330 - Add more log in browsertime_pageload.js r?rwood,nalexander draft
authorlibmozevent
Tue, 01 Oct 2019 15:06:03 +0000
changeset 2361256 7cceef18f519802228bb3b1ee207e6e568ca9e46
parent 2360413 345d89faf40e4fbe6bceb0d4b4f57ae222a2978d
child 2361257 ee2cbc7793cd531185de218696708a45d735c65e
push id429722
push userreviewbot
push dateTue, 01 Oct 2019 15:06:18 +0000
treeherdertry@ee2cbc7793cd [default view] [failures only]
reviewersrwood, nalexander
bugs1585330
milestone71.0a1
Bug 1585330 - Add more log in browsertime_pageload.js r?rwood,nalexander Differential Diff: PHID-DIFF-z5hassd6owxxbdbzhpt4
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;
 };