Chrome Flags Reference

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

--enable-gpu-blocked-time

What does --enable-gpu-blocked-time do?

Enables measures of how long GPU Main Thread was blocked between SwapBuffers

Usage

CLILaunch Chrome with --enable-gpu-blocked-time using CLI

chrome --enable-gpu-blocked-time

PuppeteerLaunch Chrome with --enable-gpu-blocked-time using Puppeteer

const browser = await puppeteer.launch({
  args: ['--enable-gpu-blocked-time']
});

PlaywrightLaunch Chrome with --enable-gpu-blocked-time using Playwright

const browser = await chromium.launch({
  args: ['--enable-gpu-blocked-time']
});

SeleniumLaunch Chrome with --enable-gpu-blocked-time using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--enable-gpu-blocked-time')

driver = webdriver.Chrome(options=options)