Chrome Flags Reference

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

--enable-gpu-command-logging

What does --enable-gpu-command-logging do?

Turn on Logging GPU commands.

Usage

CLILaunch Chrome with --enable-gpu-command-logging using CLI

chrome --enable-gpu-command-logging

PuppeteerLaunch Chrome with --enable-gpu-command-logging using Puppeteer

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

PlaywrightLaunch Chrome with --enable-gpu-command-logging using Playwright

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

SeleniumLaunch Chrome with --enable-gpu-command-logging using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--enable-gpu-command-logging')

driver = webdriver.Chrome(options=options)