Chrome Flags Reference

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

--disable-stack-profiler

What does --disable-stack-profiler do?

Disable stack profiling. Stack profiling may change performance. Disabling stack profiling is beneficial when comparing performance metrics with a build that has it disabled by default.

Usage

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

chrome --disable-stack-profiler

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

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

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

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

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

from selenium import webdriver

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

driver = webdriver.Chrome(options=options)