Skip to content

Debugging GPU usage on Chromium

Bryan B edited this page Jul 1, 2022 · 1 revision

GPGMM has built-in support for Chromium based builds which enables custom integrations for Chromium based GPU APIs.

Capture

Example trace of mixed 3D/ML work

Build

Configure args.gn (optional)

# Required when is_debug = false
gpgmm_force_tracing = true
> cd src\third_party\<project>
> curl https://raw.githubusercontent.com/intel/GPGMM/main/.github/workflows/.patches/<project>.diff | git apply --ignore-space-change --ignore-whitespace
> git clone https://github.com/intel/gpgmm third_party\gpgmm

To record URL through GPGMM:

chrome --no-sandbox <url>