Skip to content

Commit 0b368d0

Browse files
Merge pull request #1327 from nader-zouaoui/windwosperf-vs-extension-install-guide
WindowsPerf VS extension installation guide
2 parents 8c0a279 + 53141b7 commit 0b368d0

File tree

5 files changed

+95
-0
lines changed

5 files changed

+95
-0
lines changed

assets/contributors.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ Annie Tallund,Arm,annietllnd,annietallund,,
4141
Cyril Rohr,RunsOn,crohr,cyrilrohr,,
4242
Rin Dobrescu,Arm,,,,
4343
Przemyslaw Wirkus,Arm,PrzemekWirkus,przemyslaw-wirkus-78b73352,,
44+
Nader Zouaoui,Day Devs,nader-zouaoui,nader-zouaoui,@zouaoui_nader,https://daydevs.com/
331 KB
Loading
85.9 KB
Loading
228 KB
Loading
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
### Title the install tools article with the name of the tool to be installed
3+
### Include vendor name where appropriate
4+
title: WindowsPerf Ecosystem - the Visual Studio Extension
5+
minutes_to_complete: 5
6+
7+
official_docs: https://github.com/arm-developer-tools/windowsperf-vs-extension
8+
9+
author_primary: Nader Zouaoui
10+
11+
### Optional additional search terms (one per line) to assist in finding the article
12+
additional_search_terms:
13+
- perf
14+
- profiling
15+
- profiler
16+
- windows
17+
- woa
18+
- windows on arm
19+
- open source windows on arm
20+
- visual studio
21+
### FIXED, DO NOT MODIFY
22+
weight: 1 # Defines page ordering. Must be 1 for first (or only) page.
23+
tool_install: true # Set to true to be listed in main selection page, else false
24+
multi_install: FALSE # Set to true if first page of multi-page article, else false
25+
multitool_install_part: false # Set to true if a sub-page of a multi-page article, else false
26+
layout: installtoolsall # DO NOT MODIFY. Always true for tool install articles
27+
---
28+
29+
## Introduction
30+
31+
**WindowsPerf** is a lightweight performance profiling tool inspired by Linux perf, specifically tailored for Windows on ARM. It leverages the ARM64 PMU (Performance Monitor Unit) and its hardware counters to offer precise profiling capabilities. Recognizing the complexities of command-line interaction, the WindowsPerf GUI project is a Visual Studio 2022 extension that was initiated to provide a more intuitive, integrated within the development environment (IDE) experience. This tool enables developers to interact with WindowsPerf, adjust settings, and visualize performance data seamlessly within the IDE.
32+
33+
## A Glimpse of the available features
34+
35+
The WindowsPerf GUI extension is composed of several key features, each designed to streamline the user experience:
36+
37+
- **WindowsPerf Configuration**: Connect directly to `wperf.exe` for a seamless integration. Configuration is accessible via `Tools -> Options -> Windows Perf -> WindowsPerf Path`.
38+
- **Host Data**: Understand your environment with `Tools -> WindowsPerf Host Data`, offering insights into tests run by WindowsPerf and their outcomes.
39+
- **Output Logging**: All commands executed through the GUI are meticulously logged, ensuring transparency and aiding in performance analysis.
40+
- **Sampling UI**: Customize your sampling experience by selecting events, setting frequency and duration, choosing programs for sampling, and comprehensively analyzing results.
41+
42+
![Sampling preview #center](../_images/wperf-vs-extension-sampling-preview.png)
43+
_Sampling settings UI Overview_
44+
45+
- **Counting Settings UI**: Build a `wperf stat` command from scratch using our configurator, then view the output on the IDE or open it on WPA
46+
47+
![Counting preview #center](../_images/wperf-vs-extension-counting-preview.png)
48+
_Counting settings UI Overview_
49+
50+
## Getting Started
51+
52+
### Prerequisites
53+
54+
- **Visual Studio 2022**: Ensure you have Visual Studio 2022 installed on your Windows on Arm device.
55+
- **WindowsPerf**: Download and install WindowsPerf. You can follow this [learning path](../wperf) for further details
56+
- **LLVM** (Optional): You can install the LLVM toolchain by following this [guide](../llvm-woa).
57+
58+
{{% notice llvm-objdump %}}
59+
The disassembly feature needs to have `llvm-objdump` available at `%PATH%` to work properly.
60+
{{% /notice %}}
61+
62+
### Installation (VS Extension Manager)
63+
64+
To install WindowsPerf Visual Studio Extension you can do that from Visual Studio itself.
65+
66+
1. Open Visual Studio 2022
67+
2. Go to `Extensions` menu
68+
3. Select **Manage Extensions**
69+
4. Click on the search bar ( or tap `Ctrl` + `L` ) and type `WindowsPerf`
70+
5. Click on the install button and restart Visual Studio
71+
72+
![WindowsPerf install page #center](../_images/wperf-vs-extension-install-page.png)
73+
74+
### Installation (Option 2)
75+
76+
To install WindowsPerf Visual Studio Extension you can download the installation file directly from our [GitHub release page](https://github.com/arm-developer-tools/windowsperf-vs-extension/releases).
77+
78+
Unzip the downloaded file and double click on the `WindowsPerfGUI.vsix` file
79+
80+
{{% notice Note %}}
81+
You need to make sure that any previous version of the extension is uninstalled and that Visual Studio is closed before installing the extension.
82+
{{% /notice %}}
83+
84+
### Build from source
85+
86+
For those preferring to build from the source, simply clone [the repository](https://github.com/arm-developer-tools/windowsperf-vs-extension) and build the `WindowsPerfGUI` solution using the default configuration on Visual Studio. This alternative installation method offers flexibility and customization.
87+
88+
### WindowsPerf Setup
89+
90+
To get started, you must link the GUI with the executable file `wperf.exe` by navigating to `Tools -> Options -> WindowsPerf -> WindowsPerf Path`. This step is crucial for utilizing the GUI. The extension **will not work** without it!
91+
92+
## How to uninstall old WindowsPerfGUI extension
93+
94+
In Visual Studio go to `Extensions` -> `Manage Extensions` -> `Installed` -> `All` -> `WindowsPerfGUI` and select "Uninstall". Please note that this will be scheduled by VS. You may need to close VS instance and follow uninstallation wizard to remove extension.

0 commit comments

Comments
 (0)