diff --git a/docs/_includes/version/browsertime.txt b/docs/_includes/version/browsertime.txt index 6b0e58e78..cb1d6217e 100644 --- a/docs/_includes/version/browsertime.txt +++ b/docs/_includes/version/browsertime.txt @@ -1 +1 @@ -7.4.1 \ No newline at end of file +7.4.2 \ No newline at end of file diff --git a/lib/plugins/browsertime/default/metricsPageSummary.js b/lib/plugins/browsertime/default/metricsPageSummary.js index 0b8ef929c..ade43667d 100644 --- a/lib/plugins/browsertime/default/metricsPageSummary.js +++ b/lib/plugins/browsertime/default/metricsPageSummary.js @@ -28,5 +28,6 @@ module.exports = [ 'statistics.cdp.performance.FirstMeaningfulPaint', 'statistics.errors', 'statistics.axe.violations.*', - 'statistics.pageinfo.layoutShift' + 'statistics.pageinfo.layoutShift', + 'statistics.extras.*' ]; diff --git a/lib/plugins/browsertime/index.js b/lib/plugins/browsertime/index.js index 031d19b01..8a9ddc105 100644 --- a/lib/plugins/browsertime/index.js +++ b/lib/plugins/browsertime/index.js @@ -259,6 +259,10 @@ module.exports = { run.cpu = result[resultIndex].cpu[runIndex]; } + if (result[resultIndex].extras) { + run.extras = result[resultIndex].extras[runIndex]; + } + if ( result[resultIndex].cdp && result[resultIndex].cdp.performance diff --git a/lib/plugins/html/templates/url/metrics/index.pug b/lib/plugins/html/templates/url/metrics/index.pug index 79a93440e..26767a9a3 100644 --- a/lib/plugins/html/templates/url/metrics/index.pug +++ b/lib/plugins/html/templates/url/metrics/index.pug @@ -168,7 +168,7 @@ if browsertime include ./serverTimings.pug a#custom-scripts - h3 Custom scripts + h3 Custom metrics collected through JavaScript if browsertime.custom table tr @@ -181,6 +181,20 @@ if browsertime else p There are no custom configured scripts. + a#extras-metrics + h3 Extra metrics collected using scripting + if browsertime.extras + table + tr + th name + th value + each value, name in browsertime.extras + tr + td #{name} + td #{value} + else + p There are no custom extra metrics from scripting. + if browsertime.cdp && browsertime.cdp.performance a#cdp-performance h3 CDP Performance diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 830457d09..ecf3526c1 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -3431,9 +3431,9 @@ "integrity": "sha1-81HTKWnTL6XXpVZxVCY9korjvR8=" }, "browsertime": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/browsertime/-/browsertime-7.4.1.tgz", - "integrity": "sha512-5Souf89UAiWFRM9SLbEayVrUEQxC4wN9k5EuulMCQFBir3N2xL4tquOxz2yPbiy/15otX5+gjBc0PUoE2Jsihw==", + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/browsertime/-/browsertime-7.4.2.tgz", + "integrity": "sha512-Pv7VmcO+Owuo9o0WQhjo8Ckz3NIhhV8cKE/trV80BceNcE/CcVs4tWeydWysHKVk2iGQsAn61+Opz/P+STBmqg==", "requires": { "@cypress/xvfb": "1.2.4", "@sitespeed.io/chromedriver": "78.0.3904-70", diff --git a/package.json b/package.json index f4ce80f92..3a10890da 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "@google-cloud/storage": "3.2.0", "axe-core": "3.4.0", "aws-sdk": "2.517.0", - "browsertime": "7.4.1", + "browsertime": "7.4.2", "cli-color": "1.4.0", "concurrent-queue": "7.0.2", "dayjs": "1.8.15",