[Documentation] Add about 'userTimingBlockList'

This commit is contained in:
bairov 2025-03-17 19:15:14 +02:00
parent 23a9ea5f76
commit 2e7f20153b
2 changed files with 7 additions and 0 deletions

View File

@ -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.

View File

@ -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: