Chrome Flags Reference

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

--start-stack-profiler

What does --start-stack-profiler do?

Starts the stack sampling profiler in the child process.

Usage

CLILaunch Chrome with --start-stack-profiler using CLI

chrome --start-stack-profiler

PuppeteerLaunch Chrome with --start-stack-profiler using Puppeteer

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

PlaywrightLaunch Chrome with --start-stack-profiler using Playwright

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

SeleniumLaunch Chrome with --start-stack-profiler using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--start-stack-profiler')

driver = webdriver.Chrome(options=options)