browsertime 14.7.0 → 14.10.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 +16 -0
- package/lib/firefox/geckoProfiler.js +4 -2
- package/lib/firefox/getHAR.js +6 -2
- package/lib/firefox/memoryReport.js +5 -1
- package/package.json +6 -6
- package/browserscripts/.DS_Store +0 -0
- package/browsertime/.DS_Store +0 -0
- package/docs/.DS_Store +0 -0
- package/docs/sequence-diagrams/.gitignore +0 -1
- package/lib/.DS_Store +0 -0
- package/lib/chrome/.DS_Store +0 -0
- package/lib/core/.DS_Store +0 -0
- package/lib/firefox/.DS_Store +0 -0
- package/lib/support/.DS_Store +0 -0
- package/lib/video/.DS_Store +0 -0
- package/vendor/.DS_Store +0 -0
- package/vendor/mac/.DS_Store +0 -0
- package/vendor/mac/x86/.DS_Store +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Browsertime changelog (we do [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
## 14.10.0 - 2021-11-16
|
|
4
|
+
### Added
|
|
5
|
+
* Updated to Chromedriver 96 and Chrome 96 in the Docker container [#1670](https://github.com/sitespeedio/browsertime/pull/1670).
|
|
6
|
+
|
|
7
|
+
## 14.9.0 - 2021-11-07
|
|
8
|
+
### Added
|
|
9
|
+
* Updated to new Chome HAR PR [#1666](https://github.com/sitespeedio/browsertime/pull/1666) that inlcudes chunk information.
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
* Updated to yargs 17.2.1 [#1667](https://github.com/sitespeedio/browsertime/pull/1667).
|
|
13
|
+
## 14.8.0 - 2021-10-27
|
|
14
|
+
### Added
|
|
15
|
+
* New Edgedriver 95 and Edge 95 in the Docker container [#1665](https://github.com/sitespeedio/browsertime/pull/1665).
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
* 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
19
|
|
|
4
20
|
## 14.7.0 - 2021-10-20
|
|
5
21
|
### 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(
|
|
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}\`)
|
package/lib/firefox/getHAR.js
CHANGED
|
@@ -10,8 +10,12 @@ module.exports = async function (runner, includeResponseBodies) {
|
|
|
10
10
|
async function triggerExport() {
|
|
11
11
|
try {
|
|
12
12
|
const result = await HAR.triggerExport();
|
|
13
|
-
result.pages
|
|
14
|
-
|
|
13
|
+
if (result.pages.length > 0) {
|
|
14
|
+
result.pages[0].title = document.URL;
|
|
15
|
+
return callback({'har': {log: result}});
|
|
16
|
+
} else {
|
|
17
|
+
return callback({'error': 'The HAR export trigger returned an empty HAR' + JSON.stringify(result)});
|
|
18
|
+
}
|
|
15
19
|
}
|
|
16
20
|
catch(e) {
|
|
17
21
|
// Sometimes the HAR trigger is really slow so then HAR is not defined.
|
|
@@ -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,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "Browsertime",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.10.0",
|
|
4
4
|
"bin": "./bin/browsertime.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@sitespeed.io/throttle": "3.0.0",
|
|
7
7
|
"@devicefarmer/adbkit": "2.11.3",
|
|
8
8
|
"btoa": "1.2.1",
|
|
9
|
-
"@sitespeed.io/chromedriver": "
|
|
10
|
-
"chrome-har": "0.
|
|
9
|
+
"@sitespeed.io/chromedriver": "96.0.4664-35",
|
|
10
|
+
"chrome-har": "0.12.0",
|
|
11
11
|
"chrome-remote-interface": "0.31.0",
|
|
12
|
-
"dayjs": "1.10.
|
|
12
|
+
"dayjs": "1.10.7",
|
|
13
13
|
"execa": "5.1.1",
|
|
14
14
|
"fast-stats": "0.0.6",
|
|
15
15
|
"find-up": "5.0.0",
|
|
@@ -23,12 +23,12 @@
|
|
|
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": "
|
|
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",
|
|
30
30
|
"@cypress/xvfb": "1.2.4",
|
|
31
|
-
"yargs": "17.
|
|
31
|
+
"yargs": "17.2.1"
|
|
32
32
|
},
|
|
33
33
|
"optionalDependencies": {
|
|
34
34
|
"jimp": "0.16.1"
|
package/browserscripts/.DS_Store
DELETED
|
Binary file
|
package/browsertime/.DS_Store
DELETED
|
Binary file
|
package/docs/.DS_Store
DELETED
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
*.png
|
package/lib/.DS_Store
DELETED
|
Binary file
|
package/lib/chrome/.DS_Store
DELETED
|
Binary file
|
package/lib/core/.DS_Store
DELETED
|
Binary file
|
package/lib/firefox/.DS_Store
DELETED
|
Binary file
|
package/lib/support/.DS_Store
DELETED
|
Binary file
|
package/lib/video/.DS_Store
DELETED
|
Binary file
|
package/vendor/.DS_Store
DELETED
|
Binary file
|
package/vendor/mac/.DS_Store
DELETED
|
Binary file
|
package/vendor/mac/x86/.DS_Store
DELETED
|
Binary file
|