Chrome Flags Reference

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

--profiling-flush

What does --profiling-flush do?

Controls whether profile data is periodically flushed to a file. Normally the data gets written on exit but cases exist where chromium doesn't exit cleanly (especially when using single-process). A time in seconds can be specified.

Usage

CLILaunch Chrome with --profiling-flush using CLI

chrome --profiling-flush

PuppeteerLaunch Chrome with --profiling-flush using Puppeteer

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

PlaywrightLaunch Chrome with --profiling-flush using Playwright

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

SeleniumLaunch Chrome with --profiling-flush using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--profiling-flush')

driver = webdriver.Chrome(options=options)