Skip to content

Profiling Windows OS GPU memory usage

Bryan B edited this page Feb 14, 2023 · 1 revision

Profiling OS-level GPU memory usage

OS-level event tracing is able to report:

  1. System-wide memory utilization metrics.
  2. External fragmentation.

To enable:

  1. Install Windows Performance Toolkit (must be checked), a component of the Windows 10 SDK.
  2. Open C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\perfcore.ini in notepad.
  3. Append perf_dx.dll to perfcore.ini.

Then to record:

  1. Open a admin command-prompt by typing "cmd" in Windows Search then clicking "Run As Administrator".
  2. Run C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\gpuview\log.cmd to START recording.
  3. Run C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\gpuview\log.cmd again to STOP recording.
  4. Open Merged.etl in GPUView.exe or Windows Performance Analyzer (WPA.exe) to view.