Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--profiling-at-start

What does --profiling-at-start do?

Starts the sampling based profiler for the browser process at startup. This will only work if chrome has been built with the gn arg enable_profiling = true. The output will go to the value of kProfilingFile.

Usage

CLILaunch Chrome with --profiling-at-start using CLI

chrome --profiling-at-start

PuppeteerLaunch Chrome with --profiling-at-start using Puppeteer

const browser = await puppeteer.launch({
  args: ['--profiling-at-start']
});

PlaywrightLaunch Chrome with --profiling-at-start using Playwright

const browser = await chromium.launch({
  args: ['--profiling-at-start']
});

SeleniumLaunch Chrome with --profiling-at-start using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--profiling-at-start')

driver = webdriver.Chrome(options=options)