You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Title the install tools article with the name of the tool to be installed
3
3
### 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
8
5
9
6
minutes_to_complete: 10
10
7
@@ -18,83 +15,110 @@ additional_search_terms:
18
15
- profiling
19
16
- profiler
20
17
- windows
21
-
- woa
22
18
- windows on arm
23
19
- visual studio
20
+
24
21
### FIXED, DO NOT MODIFY
25
22
weight: 1# Defines page ordering. Must be 1 for first (or only) page.
26
23
tool_install: true # Set to true to be listed in main selection page, else false
27
24
multi_install: FALSE # Set to true if first page of multi-page article, else false
28
25
multitool_install_part: false # Set to true if a sub-page of a multi-page article, else false
29
26
layout: installtoolsall # DO NOT MODIFY. Always true for tool install articles
30
27
---
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.
-**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.
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.
51
32
52
33
## Before you begin
53
34
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/).
58
40
59
41
{{% 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`.
61
43
{{% /notice %}}
62
44
63
-
### Installation from Visual Studio Extension Manager
45
+
### Install using the Visual Studio Extension Manager
64
46
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:
66
48
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`
You can also install the WindowsPerf Visual Studio Extension from GitLab.
77
60
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`.
79
62
80
63
Unzip the downloaded file and double click on the `WindowsPerfGUI.vsix` file.
81
64
65
+
Follow the prompts to install the Visual Studio extension.
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.
89
84
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.
91
90
92
91
### WindowsPerf Setup
93
92
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.
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.
-**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:
0 commit comments