GPUView (GPUView.exe) is a development tool for determining the performance of the graphics processing unit (GPU) and CPU. It looks at performance with regard to direct memory access (DMA) buffer processing and all other video processing on the video hardware. GPUView is useful for developing display drivers that comply with the Windows Vista display driver model. GPUView is introduced with the release of the Windows 7 operating system.
GPUView and other files that are associated with it are included with the Windows Performance Toolkit (WPT) as an installable option of the WPT MSI. GPUView binaries are available for x86-based, x64-based, and IA64-based architectures. For example, Wpt_x86.msi is for an x86 platform.
You can also download GPUView as part of the Windows 7 SDK. After installing the SDK you will need to go to C:\Program Files\Microsoft SDKs\Windows\v7.0\bin and run either wpt_x64.msi or wpt_x86.msi. This will install the Windows Performance Toolkit which contains GPUView.
The WPT MSI includes the files that are described in the following table.
|GPUView.chm||GPUView help file|
|Readme.txt||Any additional information that is not included in the help file|
|GPUView.exe||Program for viewing ETL files with video data|
|AEplugin.dll, DWMPlugin.dll, MFPlugin.dll, NTPlugin.dll, DxPlugin.dll, and DxgkPlugin.dll||Plugins to interpret events|
|CoreTPlugin.dll||Plugin for Statistical Options dialog|
|Log.cmd||Script to turn on and off the appropriate information for logging|
|SymbolSearchPath.txt||A text file that sets the symbol path to resolve stackwalk and other events|
To use GPUView, go to the command line and run Log.cmd to start event logging. Then run Log.cmd again to stop logging. This will generate several Event Tracing for Windows (*.ETL) files; these various streams will all be merged together into a single file called Merged.etl which is what GPUView reads. Some examples of logged events are:
- All CPU context switches, including the stack trace and the reason for switching.
- All kernel mode enters and exits and the stack trace.
- All GPU events as recorded by the DirectX Graphics Kernel, including all command buffer submissions, and resource creation, destruction, lock, and bind events.
- Events reported by the graphics driver, such as command buffer start and end times, and vertical synchronization intervals for each adapter.
- Many other system events that can affect performance, such as page faults.
You can also read ETL files with XPerf (which is likewise part of the Windows SDK), however it will not understand any of the GPU specific events. Because these log files can be relatively large, you can use the
Log m command instead which will skip many of the very high frequency events.
More information, including how to download and use GPUView, can be found on Matthew Fisher's site, Matt's Webcorner, where he talks about creating GPUView.