WindowsPerf Extension for Visual Studio CodeWindowsPerf is a Visual Studio Code extension that integrates the WindowsPerf Windows on Arm performance profiling tool. It provides you with a simple way of viewing the results of a run of the wperf command line tool. You can use the WindowsPerf extension to optimize for performance on Windows on Arm. WindowsPerf uses a top-down performance analysis methodology that enables you to start with more general performance counters and then drill down into the microarchitecture to find lines in the code that correspond to events, run hot spot analysis, and view code disassembly. The Sampling Settings tab enables you to configure a run of You can then analyze the data from the run in the WindowsPerf tree view.
Before you beginBefore you start using the WindowsPerf extension, you must install the WindowsPerf command-line tool and the kernel driver. Follow the instructions in the WindowsPerf Install Guide. To use the features of the WindowsPerf extension that are specific to Windows on Arm, such as recording a run, you must install the Arm64 build of Visual Studio Code. InstallationThe WindowsPerf extension is available from the Visual Studio Code Extension Marketplace. To install the WindowsPerf extension in Visual Studio Code, follow the instructions in the Visual Studio Code Extension Marketplace documentation. Either add You can check your installation is set up correctly by using the WindowsPerf: Check WindowsPerf Installation command from the Command Palette. UsageIn Visual Studio Code, open the WindowsPerf tab in the bottom panel. Click if the panel is not visible. There are 2 ways to use the WindowsPerf Sampling Results Explorer. Record events using the Sampling Settings tab
The WindowsPerf extension updates the Command Line Preview as you specify your sampling settings. Click Record to run the command. Windows Perf runs the command for the length of time that you specified in the Timeout field, or until you click Cancel. The results display in the tree view. Record events in a JSON file
Use the WindowsPerf tree view
If you want to change any of your settings, and the Sampling Settings page is not visible, click [Show Sampling Settings]{.ui} . TroubleshootingIf you encounter any errors while running the WindowsPerf extension, you can click Check WindowsPerf Installation on the error page to detect any issues with your setup and provide suggestions on how to fix them, with links to further information. TelemetryThe WindowsPerf extension collects usage telemetry and sends it to Arm to help improve our products. Such data can include the time when a recording starts, the events that you want to monitor, or any incorrect results. Arm does not collect file names or locations, or any arguments when running a recording. This extension respects the Visual Studio Code telemetry settings described in the Visual Studio Code telemetry documentation. To change your telemetry settings, follow the instructions in Disable telemetry reporting. Additional information
TrademarksPerf is an abbreviation of Performance. Windows and Visual Studio are trademarks of the Microsoft group of companies. |