Chrome Flags Reference

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

--enable-idle-tracing

What does --enable-idle-tracing do?

Adds additional thread idle time information into the trace event output.

Usage

CLILaunch Chrome with --enable-idle-tracing using CLI

chrome --enable-idle-tracing

PuppeteerLaunch Chrome with --enable-idle-tracing using Puppeteer

const browser = await puppeteer.launch({
  args: ['--enable-idle-tracing']
});

PlaywrightLaunch Chrome with --enable-idle-tracing using Playwright

const browser = await chromium.launch({
  args: ['--enable-idle-tracing']
});

SeleniumLaunch Chrome with --enable-idle-tracing using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--enable-idle-tracing')

driver = webdriver.Chrome(options=options)

Build Conditions

ANDROID