browsertime 14.6.0 → 14.8.1
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 +23 -0
- package/lib/core/engine/command/measure.js +12 -4
- package/lib/firefox/geckoProfiler.js +4 -2
- package/lib/firefox/memoryReport.js +5 -1
- package/package.json +8 -8
- 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,28 @@
|
|
|
1
1
|
# Browsertime changelog (we do [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
## 14.9.0 - 2021-11-07
|
|
5
|
+
### Added
|
|
6
|
+
* Updated to new Chome HAR PR [#1666](https://github.com/sitespeedio/browsertime/pull/1666) that inlcudes chunk information.
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
* Updated to yargs 17.2.1 [#1667](https://github.com/sitespeedio/browsertime/pull/1667).
|
|
10
|
+
## 14.8.0 - 2021-10-27
|
|
11
|
+
### Added
|
|
12
|
+
* New Edgedriver 95 and Edge 95 in the Docker container [#1665](https://github.com/sitespeedio/browsertime/pull/1665).
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
* 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).
|
|
16
|
+
|
|
17
|
+
## 14.7.0 - 2021-10-20
|
|
18
|
+
### Added
|
|
19
|
+
* Updated to Chromedriver 95. Added Chrome 95 in the Docker container.
|
|
20
|
+
|
|
21
|
+
## 14.6.1 - 2021-10-18
|
|
22
|
+
### Fixed
|
|
23
|
+
* If loading the URL fails (we get an exception, the browser crashes etc) make sure we stop the video correctly so it can be used [#1657](https://github.com/sitespeedio/browsertime/pull/1657).
|
|
24
|
+
|
|
25
|
+
|
|
3
26
|
## 14.6.0 - 2021-10-13
|
|
4
27
|
### Added
|
|
5
28
|
* Updated to Selenium 4.0.0 [#1655](https://github.com/sitespeedio/browsertime/pull/1655).
|
|
@@ -96,6 +96,13 @@ class Measure {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
async _stopVideo(url) {
|
|
100
|
+
if (this.recordVideo && !this.options.videoParams.debug) {
|
|
101
|
+
await this.video.stop(url);
|
|
102
|
+
this.videos.push(this.video);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
99
106
|
_error(message) {
|
|
100
107
|
// If we already are measuring a page, associate the error woth that page
|
|
101
108
|
if (this.areWeMeasuring === true) {
|
|
@@ -223,6 +230,9 @@ class Measure {
|
|
|
223
230
|
this.numberOfMeasuredPages++;
|
|
224
231
|
this.numberOfVisitedPages++;
|
|
225
232
|
this.engineDelegate.failing(url);
|
|
233
|
+
// If we got an error we still should stop the video to make sure we can use it to
|
|
234
|
+
// try to understand what went wrong
|
|
235
|
+
await this._stopVideo(url);
|
|
226
236
|
throw e;
|
|
227
237
|
}
|
|
228
238
|
} else {
|
|
@@ -274,10 +284,8 @@ class Measure {
|
|
|
274
284
|
await this.storageManager.createSubDataDir(
|
|
275
285
|
path.join(pathToFolder(url, this.options))
|
|
276
286
|
);
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
this.videos.push(this.video);
|
|
280
|
-
}
|
|
287
|
+
await this._stopVideo(url);
|
|
288
|
+
|
|
281
289
|
const alias = this.options.urlMetaData
|
|
282
290
|
? this.options.urlMetaData[url]
|
|
283
291
|
: undefined || this.result[this.numberOfMeasuredPages].alias;
|
|
@@ -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}\`)
|
|
@@ -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,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "Browsertime",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.8.1",
|
|
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": "95.0.4638-17",
|
|
10
|
+
"chrome-har": "0.12.0",
|
|
11
11
|
"chrome-remote-interface": "0.31.0",
|
|
12
12
|
"dayjs": "1.10.5",
|
|
13
13
|
"execa": "5.1.1",
|
|
@@ -23,21 +23,21 @@
|
|
|
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"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"bluebird": "3.
|
|
38
|
-
"chai": "4.
|
|
37
|
+
"bluebird": "3.7.2",
|
|
38
|
+
"chai": "4.3.4",
|
|
39
39
|
"chai-as-promised": "7.1.1",
|
|
40
|
-
"eslint": "
|
|
40
|
+
"eslint": "8.0.1",
|
|
41
41
|
"eslint-config-prettier": "8.3.0",
|
|
42
42
|
"eslint-plugin-prettier": "4.0.0",
|
|
43
43
|
"longjohn": "0.2.12",
|
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
|