Skip to content

Latest commit

 

History

History
66 lines (38 loc) · 3.99 KB

INSTALL.md

File metadata and controls

66 lines (38 loc) · 3.99 KB

WindowsPerf Driver Installation And User-Space Application Usage

This file provides detailed instructions on how to install the WindowsPerf tool. It covers all the necessary steps, including system requirements, downloading the tool, and executing the installation process. By following the guidelines in this document, users can ensure a smooth and successful installation of WindowsPerf, enabling them to leverage its powerful performance monitoring and analysis capabilities.

⚠️ See Known Installation Issues for troubleshooting.

Prerequisites

Native Windows On Arm hardware is required for WindowsPerf to install and operate correctly.

⚠️ Please note that WindowsPerf will not work correctly (or you may not be able to install the Kernel driver) on VMs (virtual machines).

Steps

  1. Download the latest WindowsPerf zipped package from the release page.
  2. Unzip the windowsperf-bin-x.y.z.zip file to a local folder.
  3. Navigate to the wperf-driver sub-directory that contains the WindowsPerf Kernel Driver files.
  4. From the command line as Administrator, execute the command wperf-devgen.exe install:
> wperf-devgen.exe install

For more details, see the Driver Installation section in the wperf-devgen.exe documentation. Example:

  1. After the driver is successfully installed, you can start using the wperf.exe user-space application. There's no need to use Administrator privileges for this.

  2. To check your driver and user-space application compatibility, run the following command:

> wperf.exe --version

This command will display the version of wperf.exe, which can help you verify if it's compatible with the installed driver. If you encounter any issues or need further assistance, feel free to ask here.

Uninstalling The WindowsPerf Driver

If you no longer require the use of WindowsPerf, you have the option to uninstall the wperf-driver from your system. Detailed instructions for the driver uninstallation process can be found in the Driver uninstallation section of the WindowsPerf documentation.

Example:

> wperf-devgen uninstall

Known Installation Issues

wperf-devgen.exe - Application Error

If you see below error when you try to run wperf-devgen.exe:

⚠️ "The application was unable to start correctly (0xc000007b). Click OK to close this application."

Please refer to A Windows Error 0xC000007B article.

Usually errors like these are due to missing vcredist files. We suggest downloading the updated ones from Microsoft's page, for example Latest Microsoft Visual C++ Redistributable Version.

wperf-devgen.exe - System Error

If you see below error when you try to run wperf-devgen.exe:

⚠️ "The code execution cannot proceed because MSVCP140.dll was not found. Reinstalling the program may fix this problem."

Please refer to VCRUNTIME140.dll and MSVCP140.dll missing in Windows 11 article.

Usually errors like these are due to missing MSVCP140.dll and VCRUNTIME140.dll files. We suggest downloading the updated ones from Microsoft's page, for example Latest Microsoft Visual C++ Redistributable Version.