Reading time: | 15 min |
Last updated: | 2 Dec 2024 |
Reading time: |
15 min |
Last updated: |
2 Dec 2024 |
Author: | Alaaeddine Chakroun, Day Devs |
Official docs: | View |
Author: |
Alaaeddine Chakroun, Day Devs |
Official docs: |
View |
This guide is intended to get you up and running with this tool quickly with the most common settings. For a thorough review of all options, refer to the official documentation.
The Windows Performance Analyzer (WPA) plugin connects WindowsPerf to the Windows Performance Analyzer. Windows Perf is a lightweight performance profiling tool inspired by Linux Perf and designed for Windows on Arm.
Windows Performance Analyzer provides developers with diagnostics and performance tuning. It generates data tables and graphs of Event Tracing for Windows (ETW) events, which are recorded in one of three ways:
WPA can open Event Trace Log (ETL) files, which you can use for analysis.
The WPA plugin is built using the Microsoft Performance Toolkit SDK , which is a collection of tools to create and extend performance analysis applications. The plugin parses JSON output from Windows Perf so that it can be visualized in WPA.
The WindowsPerf GUI extension includes features that are designed to streamline the user experience, and these are detailed below.
The timeline view visualizes the wperf stat
timeline data plotted by event group:
The telemetry view displays telemetry events grouped by unit:
Before installing the plugin, you need to install WPA.
For Windows on Arm devices, you can install WPA from the Microsoft Store.
Open the Microsoft Store and search for “windows performance analyzer”.
Hover over the card, and you will see that the Free button becomes a Get button. Click the Get button to start the installation.
Wait for WPA to be installed, and then launch it from the Windows menu.
The WPA plugin requires WPA version 11.0.7.2
or higher. You can check the version by clicking Help > About Windows Performance Analyzer.
Close Windows Performance Analyzer.
You are now ready to install the WPA plugin, which is a single .dll
file.
Download the .zip
file from the
Windows Perf WPA plugin GitHub releases page
on GitHub.
Alternatively, you can download the .zip
file from a command prompt:
mkdir wpa-plugin
cd wpa-plugin
curl -L -O https://github.com/arm-developer-tools/windowsperf-wpa-plugin/releases/download/1.0.3/wpa-plugin-1.0.3.zip
Extract the .dll
file from the downloaded .zip
file.
tar -xmf wpa-plugin-1.0.3.zip
The file WPAPlugin.dll
is now in your wpa-plugin
directory.
There are three ways that you can use the WPAPlugin.dll
file:
Use the -addsearchdir
flag to tell wpa
where to find plugins.
For example, if you downloaded the .dll
in your Downloads
directory, you can run wpa
as shown below:
wpa -addsearchdir %USERPROFILE%\Downloads\wpa-plugin-1.0.3
Set the WPA_ADDITIONAL_SEARCH_DIRECTORIES
environment variable to the location of the .dll
file.
.dll
file to the CustomDataSources
directory next to the WPA executable.The default location is:
C:\\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\CustomDataSources
To verify the plugin is loaded, launch WPA and the plugin should appear on the Installed Plugins list.
To open a JSON file directly from the command line, you can use the -i
flag to specify the file path to open.
For example, to open timeline_long.json
in your downloads
directory, run the command:
wpa -addsearchdir %USERPROFILE%\Downloads\wpa-plugin-1.0.3 -i %USERPROFILE%\Downloads\timeline_long.json
To uninstall the plugin, simply delete the WPAPlugin.dll
file.
How would you rate the overall quality of this tool quick-install guide?
What is the primary reason for your feedback ?
Thank you. We're grateful for your feedback on how to improve this tool quick-install guide.