Skip to content

Commit 2e59456

Browse files
Merge pull request #1599 from jasonrandrews/tool-installs
Review Visual Studio extension for WindowsPerf install guide
2 parents 6026147 + 476ae7e commit 2e59456

File tree

3 files changed

+68
-44
lines changed

3 files changed

+68
-44
lines changed
14.5 KB
Loading
59.2 KB
Loading
Lines changed: 68 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
---
22
### Title the install tools article with the name of the tool to be installed
33
### Include vendor name where appropriate
4-
title: WindowsPerf Visual Studio Extension
5-
draft: true
6-
cascade:
7-
draft: true
4+
title: Visual Studio extension for WindowsPerf
85

96
minutes_to_complete: 10
107

@@ -18,83 +15,110 @@ additional_search_terms:
1815
- profiling
1916
- profiler
2017
- windows
21-
- woa
2218
- windows on arm
2319
- visual studio
20+
2421
### FIXED, DO NOT MODIFY
2522
weight: 1 # Defines page ordering. Must be 1 for first (or only) page.
2623
tool_install: true # Set to true to be listed in main selection page, else false
2724
multi_install: FALSE # Set to true if first page of multi-page article, else false
2825
multitool_install_part: false # Set to true if a sub-page of a multi-page article, else false
2926
layout: installtoolsall # DO NOT MODIFY. Always true for tool install articles
3027
---
31-
[WindowsPerf](/install-guides/wperf/) is a lightweight performance profiling tool inspired by Linux Perf, and specifically tailored for Windows on Arm. It leverages the AArch64 Performance Monitoring Unit (PMU) and its hardware counters to offer precise profiling capabilities.
32-
33-
Recognizing the complexities of command-line interaction, the WindowsPerf GUI is a Visual Studio 2022 extension created to provide a more intuitive, integrated experience within the Integrated Development Environment (IDE). This tool enables developers to interact with WindowsPerf, adjust settings, and visualize performance data seamlessly in Visual Studio.
34-
35-
## Overview of key features
36-
37-
The WindowsPerf GUI extension is composed of several key features, each designed to streamline the user experience:
38-
39-
- **WindowsPerf Configuration**: Connect directly to `wperf.exe` for a seamless integration. Configuration is accessible by selecting **Tools > Options > Windows Perf > WindowsPerf Path**.
40-
- **Host Data**: Understand your environment by selecting **Tools** then **WindowsPerf Host Data**. This offers insights into tests run by WindowsPerf.
41-
- **Output Logging**: All commands executed through the GUI are logged, ensuring transparency and supporting performance analysis.
42-
- **Sampling UI**: Customize your sampling experience by selecting events, setting frequency and duration, choosing programs for sampling, and comprehensively analyzing results. See screenshot below.
43-
44-
![Sampling preview #center](/install_guides/_images/wperf-vs-extension-sampling-preview.png "Sampling settings UI Overview")
45-
4628

47-
- **Counting Settings UI**: Build a `wperf stat` command from scratch using the configuration interface, then view the output in the IDE or open it with Windows Performance Analyzer (WPA). See screenshot below.
29+
WindowsPerf is a lightweight performance profiling tool inspired by Linux Perf, and specifically tailored for Windows on Arm.
4830

49-
50-
![Counting preview #center](/install_guides/_images/wperf-vs-extension-counting-preview.png "Counting settings UI Overview")
31+
The WindowsPerf GUI is a Visual Studio 2022 extension created to provide a more intuitive experience within the Visual Studio integrated development environment (IDE). The extension enables developers to interact with WindowsPerf, adjust settings, and visualize performance data seamlessly in Visual Studio.
5132

5233
## Before you begin
5334

54-
Before installing WindowsPerf Visual Studio Extension, check the following:
55-
1. Ensure Visual Studio 2022 is installed on your Windows on Arm device.
56-
2. Download and install WindowsPerf by following the [WindowsPerf install guide](/install-guides/wperf/).
57-
3. (Recommended) You can install the LLVM toolchain by following the [LLVM toolchain for Windows on Arm install guide](/install-guides/llvm-woa).
35+
Before installing the Visual Studio Extension for WindowsPerf, perform the following steps:
36+
37+
1. Install [Visual Studio 2022](/install-guides/vs-woa/) on your Windows on Arm device.
38+
2. Install WindowsPerf using the [WindowsPerf install guide](/install-guides/wperf/).
39+
3. Install the LLVM toolchain using the [LLVM toolchain for Windows on Arm install guide](/install-guides/llvm-woa/).
5840

5941
{{% notice llvm-objdump %}}
60-
The disassembly feature needs to have `llvm-objdump` available at `%PATH%` to work properly.
42+
The disassembly feature needs to have `llvm-objdump` available in the search path to work properly. Check your `%PATH%` variable to confirm it includes the location of `llvm-objdump`.
6143
{{% /notice %}}
6244

63-
### Installation from Visual Studio Extension Manager
45+
### Install using the Visual Studio Extension Manager
6446

65-
To install the WindowsPerf Visual Studio Extension from Visual Studio:
47+
To install the Visual Studio extension for WindowsPerf from Visual Studio use the extension manager:
6648

67-
1. Open Visual Studio 2022.
68-
2. Go to the **Extensions** menu and select **Manage Extensions**.
69-
4. Click on the search bar (Ctrl+L) and type `WindowsPerf`.
70-
5. Click on the **Install** button and restart Visual Studio.
49+
1. Open Visual Studio 2022
50+
2. Use the `Extensions` menu to select `Manage Extensions`
51+
3. Click on the `Search (Ctrl+L)` bar and type `WindowsPerf`
52+
4. Click on the `Install` button
53+
5. Restart Visual Studio
7154

72-
![WindowsPerf install page #center](/install_guides/_images/wperf-vs-extension-install-page.png)
55+
![Install #center](/install-guides/_images/wperf-vs-extension-install-page.png)
7356

74-
### Installation from GitLab
57+
### Install from GitLab
7558

7659
You can also install the WindowsPerf Visual Studio Extension from GitLab.
7760

78-
Download the installation file directly from the [release page](https://gitlab.com/Linaro/WindowsPerf/vs-extension/-/releases).
61+
Using a browser, visit the [Releases](https://gitlab.com/Linaro/WindowsPerf/vs-extension/-/releases) page and download the latest file. For example, `windowsperf-gui-3.1.3.zip`.
7962

8063
Unzip the downloaded file and double click on the `WindowsPerfGUI.vsix` file.
8164

65+
Follow the prompts to install the Visual Studio extension.
66+
67+
![VSIX Install #center](/install-guides/_images/vs-ext-install.png)
68+
8269
{{% notice Note %}}
8370
Make sure that any previous version of the extension is uninstalled and that Visual Studio is closed before installing the extension.
8471
{{% /notice %}}
8572

86-
### Build from source
73+
### Build and install from source code
74+
75+
Building the source is not required, but is an alternative installation method if you want to customize the extension.
76+
77+
To build the source code, clone [the repository](https://gitlab.com/Linaro/WindowsPerf/vs-extension.git) using Git.
78+
79+
```console
80+
git clone https://gitlab.com/Linaro/WindowsPerf/vs-extension.git
81+
```
8782

88-
To build the source code, clone [the repository](https://gitlab.com/Linaro/WindowsPerf/vs-extension.git) and build the `WindowsPerfGUI` solution using the default configuration in Visual Studio.
83+
Double click the `WindowsPerfGUI.sln` solution file to open the project Visual Studio.
8984

90-
Building the source is not required, but offered as an alternative installation method if you want to customize the extension.
85+
{{% notice Note %}}
86+
Visual Studio may prompt you to install additional components required to build the project, install these components.
87+
{{% /notice %}}
88+
89+
Open the `Build` menu and select `Build Solution` to create `WindowsPerfGUI.dll` and `WindowsPerfGUI.vsix`. You can replace the currently installed files with these files to try any changes you have made.
9190

9291
### WindowsPerf Setup
9392

94-
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, and the extension will not work if you don't do it.
93+
After the extension is installed, you must link the extension with the `wperf.exe` file by navigating to `Tools > Options > WindowsPerf > WindowsPerf Path` in Visual Studio.
94+
95+
Use the `Select` button to navigate to your `wperf.exe` and the `Validate` button to confirm the executable is found.
96+
97+
![Validate #center](/install-guides/_images/wperf-validate.png)
98+
99+
This step is crucial for utilizing the extension, and the extension will not work without this configuration.
100+
101+
## Overview of key features
102+
103+
The WindowsPerf extension is composed of several key features, each designed to streamline the user experience:
104+
105+
- **WindowsPerf Configuration**: Connect directly to `wperf.exe` for a seamless integration.
106+
- **Host Data**: Understand your environment by selecting `Tools` then `WindowsPerf Host Data`.
107+
- **Output Logging**: All commands executed through the GUI are logged, ensuring transparency and aiding with performance analysis.
108+
- **Sampling UI**: Customize your sampling experience by selecting events, setting frequency and duration, choosing programs for sampling, and comprehensively analyzing results.
109+
110+
The sampling interface is shown below:
111+
112+
![Sampling preview #center](/install-guides/_images/wperf-vs-extension-sampling-preview.png)
113+
114+
- **Counting Settings UI**: Build a `wperf stat` command from scratch using the configuration interface, then view the output in VS Code or open it with Windows Performance Analyzer (WPA).
115+
116+
The interface to configure counting is shown below:
117+
118+
![Counting preview #center](/install-guides/_images/wperf-vs-extension-counting-preview.png)
95119

96-
## Uninstall the WindowsPerfGUI extension
120+
## Uninstall the WindowsPerf extension
97121

98-
In Visual Studio go to **Extensions > Manage Extensions > Installed > All > WindowsPerfGUI** and select **Uninstall**.
122+
To uninstall the extension in Visual Studio go to `Extensions > Manage Extensions > Installed > All > WindowsPerfGUI` and select `Uninstall`.
99123

100-
As this will be scheduled by Visual Studio, you might need to close the VS instance and follow the uninstall wizard to remove the extension.
124+
The uninstall will be scheduled by Visual Studio, so you need to close Visual Studio and follow the uninstall dialog to remove the extension.

0 commit comments

Comments
 (0)