Bug 1585330 - Add more log in browsertime_pageload.js r?rwood,nalexander draft
authorTarek Ziadé <tarek@mozilla.com>
Tue, 01 Oct 2019 17:51:59 +0200
changeset 2361432 efaaafc8753cd568ac056e3221179e6b91895271
parent 2360413 345d89faf40e4fbe6bceb0d4b4f57ae222a2978d
child 2361433 2e31a4827881ae96be3a5b4f21084220dc4cd25f
child 2361713 31fa24928069241b0936cc6de6644977b6c2695f
child 2361877 62599cdc8cfff8cd71ee32632965eced508be86f
child 2362638 46671d33d553ff6b7a337559907cf0604de34dfe
child 2363009 d986cf09ed607ad4182ef2beaf0d8c88530b9f1e
child 2363753 f18bb14880c2c9333ed9d7d2f91c1c688d4079b5
child 2364010 d6c8003c8202b731c86bb62dc42001c4b667220f
child 2364882 eacec65f9b0ddd7f8ca952f5d379ab24f3732af3
child 2365203 ca409f80d8b42de667a4e734a322df6b1507e34b
child 2365448 bc3a4164c7b3cd6c74c5e83a65f6cca2c1b23988
child 2365537 5d0d0f849cbd1d29a5db6e6fef7cedf6b8a30ca0
child 2365598 5357221d8f33889ccac25d20aa02dde5673761bf
child 2366372 3202705ffc7d5b0ebdd2c2ad5c438510bfea9420
child 2367512 a5309520122946694d8138aa24fd52508babca24
child 2367786 cf3dd68e4dd5823803d47d7326df34869b94b754
child 2367853 45801e47dc0458c05e54f8ddfe22d9679b312422
push id429792
push usertziade@mozilla.com
push dateTue, 01 Oct 2019 17:02:56 +0000
treeherdertry@bb52c38023b2 [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,24 @@
 /* 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;
+  let foreground_delay = context.options.browsertime.foreground_delay;
 
-  await commands.wait.byTime(context.options.browsertime.foreground_delay);
+  context.log.info("Waiting for %d ms (foreground_delay)", foreground_delay);
+  await commands.wait.byTime(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;
 };