browsertime 14.7.0 → 14.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Browsertime changelog (we do [semantic versioning](https://semver.org))
2
2
 
3
+ ## 14.8.0 - 2021-10-27
4
+ ### Added
5
+ * New Edgedriver 95 and Edge 95 in the Docker container [#1665](https://github.com/sitespeedio/browsertime/pull/1665).
6
+
7
+ ### Fixed
8
+ * Fix for storing Firefox memory report and geckoprofile on Android 10+. Thank you [Andrew Creskey](https://github.com/acreskeyMoz) for PR [#1663](https://github.com/sitespeedio/browsertime/pull/1663).
3
9
 
4
10
  ## 14.7.0 - 2021-10-20
5
11
  ### Added
@@ -103,11 +103,13 @@ class GeckoProfiler {
103
103
 
104
104
  let deviceProfileFilename = destinationFilename;
105
105
  if (isAndroidConfigured(options)) {
106
- deviceProfileFilename = `/sdcard/geckoProfile-${index}.json`;
106
+ deviceProfileFilename = `/sdcard/Android/data/${this.firefoxConfig.android.package}/files/geckoProfile-${index}.json`;
107
107
  }
108
108
 
109
109
  // Must use String.raw or else the backslashes on Windows will be escapes.
110
- log.info(`Collecting Gecko profile in ${destinationFilename}`);
110
+ log.info(
111
+ `Collecting Gecko profile from ${deviceProfileFilename} to ${destinationFilename}`
112
+ );
111
113
  const script = `
112
114
  var callback = arguments[arguments.length - 1];
113
115
  Services.profiler.dumpProfileToFileAsync(String.raw\`${deviceProfileFilename}\`)
@@ -1,4 +1,5 @@
1
1
  'use strict';
2
+ const log = require('intel').getLogger('browsertime.firefox');
2
3
  const path = require('path');
3
4
  const pathToFolder = require('../support/pathToFolder');
4
5
  const { BrowserError } = require('../support/errors');
@@ -76,7 +77,7 @@ class MemoryReport {
76
77
 
77
78
  let deviceReportFilename = destinationFilename;
78
79
  if (isAndroidConfigured(options)) {
79
- deviceReportFilename = `/sdcard/memoryReport-${index}.json`;
80
+ deviceReportFilename = `/sdcard/Android/data/${firefoxConfig.android.package}/files/memoryReport-${index}.json`;
80
81
  }
81
82
 
82
83
  let minimizeFirst = 'false';
@@ -84,6 +85,9 @@ class MemoryReport {
84
85
  minimizeFirst = 'true';
85
86
  }
86
87
 
88
+ log.info(
89
+ `Collecting memory report from ${deviceReportFilename} to ${destinationFilename}`
90
+ );
87
91
  let script = `Cc['@mozilla.org/memory-info-dumper;1'].getService(Ci.nsIMemoryInfoDumper).dumpMemoryReportsToNamedFile(String.raw\`${deviceReportFilename}\`, null, null, false, ${minimizeFirst});`;
88
92
  await timeout(
89
93
  runner.runPrivilegedScript(script, 'Collecting memory report'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "description": "Browsertime",
3
- "version": "14.7.0",
3
+ "version": "14.8.0",
4
4
  "bin": "./bin/browsertime.js",
5
5
  "dependencies": {
6
6
  "@sitespeed.io/throttle": "3.0.0",
@@ -23,7 +23,7 @@
23
23
  "lodash.pick": "4.4.0",
24
24
  "lodash.set": "4.3.2",
25
25
  "selenium-webdriver": "4.0.0",
26
- "@sitespeed.io/edgedriver": "93.0.910-5",
26
+ "@sitespeed.io/edgedriver": "95.0.1020-30",
27
27
  "@sitespeed.io/geckodriver": "0.29.1-2",
28
28
  "@sitespeed.io/tracium": "0.3.3",
29
29
  "speedline-core": "1.4.3",