From 2e7f20153b53477ccbdf8d1b29111094815657cc Mon Sep 17 00:00:00 2001 From: bairov Date: Mon, 17 Mar 2025 19:15:14 +0200 Subject: [PATCH 1/2] [Documentation] Add about 'userTimingBlockList' --- docs/documentation/sitespeed.io/configuration/config.md | 1 + lib/cli/cli.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/docs/documentation/sitespeed.io/configuration/config.md b/docs/documentation/sitespeed.io/configuration/config.md index 72e3e0e1b6..3cb7afde0b 100644 --- a/docs/documentation/sitespeed.io/configuration/config.md +++ b/docs/documentation/sitespeed.io/configuration/config.md @@ -44,6 +44,7 @@ Browser --browsertime.videoParams.convert, --videoParams.convert Convert the original video to a viewable format (for most video players). Turn that off to make a faster run. [boolean] [default: true] --browsertime.cpu, --cpu Easy way to enable both chrome.timeline and CPU long tasks for Chrome and geckoProfile for Firefox [boolean] --browsertime.userTimingAllowList, --userTimingAllowList This option takes a regex that will whitelist which userTimings to capture in the results. All userTimings are captured by default. + --browsertime.userTimingBlockList, --userTimingBlockList This option takes a regex that works like `userTimingAllowList`, but instead of allowing, it blocks specific userTimings from being captured. --axe.enable Run axe tests. Axe will run after all other metrics is collected and will add some extra time to each test. [boolean] -r, --browsertime.requestheader, --requestheader Request header that will be added to the request. Add multiple instances to add multiple request headers. Use the following format key:value. Only works in Chrome, Firefox and Edge. --browsertime.cookie, --cookie Cookie that will be added to the request. Add multiple instances to add multiple cookies. Use the following format cookieName=cookieValue. Only works in Chrome and Firefox. diff --git a/lib/cli/cli.js b/lib/cli/cli.js index 7e055c05c3..e776f37086 100644 --- a/lib/cli/cli.js +++ b/lib/cli/cli.js @@ -635,6 +635,12 @@ export async function parseCommandLine() { 'This option takes a regex that will whitelist which userTimings to capture in the results. All userTimings are captured by default.', group: 'Browser' }) + .option('browsertime.userTimingBlockList', { + alias: 'userTimingBlockList', + describe: + 'This option takes a regex that works like `userTimingAllowList`, but instead of allowing, it blocks specific userTimings from being captured.', + group: 'Browser' + }) .option('axe.enable', { type: 'boolean', describe: From dedd323a101a49156e0d8a6a39ffd867bcd05e63 Mon Sep 17 00:00:00 2001 From: bairov Date: Mon, 17 Mar 2025 19:17:12 +0200 Subject: [PATCH 2/2] [Documentation] Add about 'userTimingBlockList' - fix linter --- lib/cli/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/cli.js b/lib/cli/cli.js index e776f37086..c288d35bc4 100644 --- a/lib/cli/cli.js +++ b/lib/cli/cli.js @@ -640,7 +640,7 @@ export async function parseCommandLine() { describe: 'This option takes a regex that works like `userTimingAllowList`, but instead of allowing, it blocks specific userTimings from being captured.', group: 'Browser' - }) + }) .option('axe.enable', { type: 'boolean', describe: