Bug 1164268 - Add some logging to browser_perf-compatibility-05.js, r=me
authorVictor Porof <vporof@mozilla.com>
Fri, 12 Jun 2015 18:26:46 -0400
changeset 279480 590b7775ce8431ec98136a86b2400ee1d2fc90a7
parent 279479 028847223bd0b0ba4d2b93adbd1b4909a45b7232
child 279481 bfd3cda6d87bb2fe2897774342c4a67fe4e8cb67
push id4932
push userjlund@mozilla.com
push dateMon, 10 Aug 2015 18:23:06 +0000
treeherdermozilla-beta@6dd5a4f5f745 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1164268
milestone41.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 1164268 - Add some logging to browser_perf-compatibility-05.js, r=me
browser/devtools/performance/test/browser_perf-compatibility-05.js
--- a/browser/devtools/performance/test/browser_perf-compatibility-05.js
+++ b/browser/devtools/performance/test/browser_perf-compatibility-05.js
@@ -30,31 +30,34 @@ function* spawnTest() {
 
   let firstRecording = yield front.startRecording();
   let firstRecordingStartTime = firstRecording._profilerStartTime;
   info("Started profiling at: " + firstRecordingStartTime);
 
   busyWait(WAIT_TIME); // allow the profiler module to sample some cpu activity
 
   yield front.stopRecording(firstRecording);
+  info("The first recording is " + firstRecording.getDuration() + "ms long.");
 
   is(firstRecordingStartTime, 0,
     "The profiling start time should be 0 for the first recording.");
   ok(firstRecording.getDuration() >= WAIT_TIME,
     "The first recording duration is correct.");
 
   // Perform the second recording...
 
   let secondRecording = yield front.startRecording();
   let secondRecordingStartTime = secondRecording._profilerStartTime;
   info("Started profiling at: " + secondRecordingStartTime);
 
   busyWait(WAIT_TIME); // allow the profiler module to sample more cpu activity
 
   yield front.stopRecording(secondRecording);
+  info("The second recording is " + secondRecording.getDuration() + "ms long.");
+
   let secondRecordingProfile = secondRecording.getProfile();
   let secondRecordingSamples = secondRecordingProfile.threads[0].samples.data;
 
   isnot(secondRecording._profilerStartTime, 0,
     "The profiling start time should not be 0 on the second recording.");
   ok(secondRecording.getDuration() >= WAIT_TIME,
     "The second recording duration is correct.");