--profiling-file
What does --profiling-file do?
Specifies a location for profiling output. This will only work if chrome has been built with the gyp variable profiling=1 or gn arg enable_profiling=true. {pid} if present will be replaced by the pid of the process. {count} if present will be incremented each time a profile is generated for this process. The default is chrome-profile-{pid} for the browser and test-profile-{pid} for tests.
Usage
CLILaunch Chrome with --profiling-file using CLI
chrome --profiling-filePuppeteerLaunch Chrome with --profiling-file using Puppeteer
const browser = await puppeteer.launch({
args: ['--profiling-file']
});PlaywrightLaunch Chrome with --profiling-file using Playwright
const browser = await chromium.launch({
args: ['--profiling-file']
});SeleniumLaunch Chrome with --profiling-file using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--profiling-file')
driver = webdriver.Chrome(options=options)