Skip to content

Commit 8b06353

Browse files
authored
Merge pull request #8376 from MicrosoftDocs/main637964752713742575sync_temp
Repo sync for protected CLA branch
2 parents 2e9afa6 + a4541ec commit 8b06353

File tree

4 files changed

+32
-27
lines changed

4 files changed

+32
-27
lines changed

docs/javascript/tutorial-asp-net-core-with-angular.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Starting in Visual Studio 2022 version 17.3, you can publish the integrated solu
148148
</ProjectReference>
149149
```
150150

151-
1. Right-click the ASP.NET Core project and choose **Reload Project**.
151+
1. Right.click the ASP.NET Core project and choose **Reload Project**.
152152

153153
1. To publish, right click the ASP.NET Core project, choose **Publish**, and select options to match your desired publish scenario, such as Azure, publish to a folder, et al.
154154

docs/javascript/tutorial-asp-net-core-with-react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Starting in Visual Studio 2022 version 17.3, you can publish the integrated solu
146146
</ProjectReference>
147147
```
148148

149-
1. Right-click the ASP.NET Core project and choose **Reload Project**.
149+
1. Right.click the ASP.NET Core project and choose **Reload Project**.
150150

151151
1. To publish, right click the ASP.NET Core project, choose **Publish**, and select options to match your desired publish scenario, such as Azure, publish to a folder, et al.
152152

docs/profiling/profiling-feature-tour.md

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "First look at profiling tools"
33
description: "Take a brief look at the different diagnostic tools available in Visual Studio."
4-
ms.date: 12/22/2021
4+
ms.date: 08/18/2022
55
ms.topic: conceptual
66
f1_keywords:
77
- vs.diagnosticshub.overview
@@ -175,23 +175,6 @@ When you select one of the arrow links, you are given a differential view of the
175175

176176
If you click the link on the left instead in the **Memory Usage** view, the heap view is organized by object count; the objects of a particular type that increased the most in number are shown at the top (sorted by **Count Diff** column).
177177

178-
## Analyze resource consumption (XAML)
179-
180-
In XAML apps, such as Windows desktop WPF apps and UWP apps, you can analyze resource consumption using the Application Timeline tool. For example, you can analyze the time spent by your application preparing UI frames (layout and render), servicing network and disk requests, and in scenarios like application startup, page load, and Window resize. To use the tool, choose **Application Timeline** in the Performance Profiler, and then choose **Start**. In your app, go through the scenario with a suspected resource consumption issue, and then choose **Stop collection** to generate the report.
181-
182-
Low framerates in the **Visual throughput** graph may correspond to visual problems that you see when running your app. Similarly, high numbers in the **UI thread utilization** graph may also correspond to UI responsiveness issues. In the report, you can select a time period with a suspected performance issue, and then examine the detailed UI thread activities in the Timeline details view (lower pane).
183-
184-
::: moniker range=">=vs-2022"
185-
![Application Timeline profiling tool](../profiling/media/vs-2022/prof-tour-application-timeline.png "Profiling Tour Application Timeline")
186-
::: moniker-end
187-
::: moniker range="<=vs-2019"
188-
![Application Timeline profiling tool](../profiling/media/prof-tour-application-timeline.gif "Profiling Tour Application Timeline")
189-
::: moniker-end
190-
191-
In the Timeline details view, you can find information such as the type of activity (or the UI element involved) along with the duration of the activity. For example, in the illustration, a **Layout** event for a Grid control takes 57.53 ms.
192-
193-
For more information, see [Application Timeline](../profiling/application-timeline.md).
194-
195178
::: moniker range=">=vs-2022"
196179
## Analyze asynchronous code (.NET)
197180

@@ -201,7 +184,6 @@ The tool shows each async operation in a list view. You can see information such
201184

202185
![.NET Async Tool Stopped](../profiling/media/vs-2022/prof-tour-async-tool.png ".NET Async Tool Stopped")
203186
::: moniker-end
204-
205187
::: moniker range="vs-2019"
206188
## Analyze asynchronous code (.NET)
207189

@@ -212,8 +194,6 @@ The tool shows each async operation in a list view. You can see information such
212194
![.NET Async Tool Stopped](../profiling/media/async-tool-opened.png ".NET Async Tool Stopped")
213195
::: moniker-end
214196

215-
::: moniker range=">=vs-2019"
216-
217197
## Examine application events
218198

219199
The generic [events viewer](../profiling/events-viewer.md) allows you to view the activity of your application through a list of events, such as module load, thread start, and system configurations, to help better diagnose how your application is performing right within the Visual Studio profiler. This tool is available in the Performance Profiler. Open the Performance Profiler by choosing **Debug** > **Performance Profiler** (or **Alt + F2**).
@@ -222,6 +202,18 @@ The tool shows each event in a list view. Columns provide information about each
222202

223203
![Event Viewer Trace](../profiling/media/prof-tour-events-viewer.png "Event Viewer Trace")
224204

205+
::: moniker range=">= vs-2022"
206+
207+
## Examine File I/O
208+
209+
The [File I/O tool](../profiling/use-file-io.md) helps you understand how you can optimize your File I/O operations to improve performance in your apps. If you’re trying to investigate and diagnose slow loading times, the new File IO tool can help you understand how the I/O operations impact your spent time. This tool is available in the Performance Profiler. Open the Performance Profiler by choosing Debug > Performance Profiler (or Alt + F2).
210+
211+
The tool shows file read and file write operations in a tabbed list view.
212+
213+
![Screenshot showing File IO tool stopped.](./media/vs-2022/file-io-after.png "File IO tool stopped")
214+
215+
::: moniker-end
216+
225217
## Analyze database performance (.NET Core)
226218

227219
For .NET Core apps that use ADO.NET or Entity Framework Core, the [Database tool](../profiling/analyze-database.md) allows you to record the database queries that your application makes during a diagnostic session. You can then analyze information about individual queries in order to find places where your app's performance can be improved. This tool is available in the Performance Profiler. Open the Performance Profiler by choosing **Debug** > **Performance Profiler** (or **Alt + F2**).
@@ -238,8 +230,23 @@ The tool shows live values for each counter in a list view.
238230

239231
:::image type="content" source="../profiling/media/dotnet-counters-tool-collecting.png" alt-text=".NET Counter tool collecting.":::
240232

233+
## Analyze resource consumption (XAML)
234+
235+
In XAML apps, such as Windows desktop WPF apps and UWP apps, you can analyze resource consumption using the Application Timeline tool. For example, you can analyze the time spent by your application preparing UI frames (layout and render), servicing network and disk requests, and in scenarios like application startup, page load, and Window resize. To use the tool, choose **Application Timeline** in the Performance Profiler, and then choose **Start**. In your app, go through the scenario with a suspected resource consumption issue, and then choose **Stop collection** to generate the report.
236+
237+
Low framerates in the **Visual throughput** graph may correspond to visual problems that you see when running your app. Similarly, high numbers in the **UI thread utilization** graph may also correspond to UI responsiveness issues. In the report, you can select a time period with a suspected performance issue, and then examine the detailed UI thread activities in the Timeline details view (lower pane).
238+
239+
::: moniker range=">=vs-2022"
240+
![Application Timeline profiling tool](../profiling/media/vs-2022/prof-tour-application-timeline.png "Profiling Tour Application Timeline")
241+
::: moniker-end
242+
::: moniker range="<=vs-2019"
243+
![Application Timeline profiling tool](../profiling/media/prof-tour-application-timeline.gif "Profiling Tour Application Timeline")
241244
::: moniker-end
242245

246+
In the Timeline details view, you can find information such as the type of activity (or the UI element involved) along with the duration of the activity. For example, in the illustration, a **Layout** event for a Grid control takes 57.53 ms.
247+
248+
For more information, see [Application Timeline](../profiling/application-timeline.md).
249+
243250
## Examine UI performance and accessibility events (UWP)
244251

245252
In your UWP apps, you can enable **UI Analysis** in the **Diagnostic Tools** window. The tool searches for common performance or accessibility issues and displays them in the **Events** view while you are debugging. The event descriptions provide information that can help resolve issues.
@@ -266,13 +273,10 @@ When you select a time period in the graphs and choose **view details**, a detai
266273

267274
You can also use the graphs to determine whether there are CPU bound or GPU bound performance bottlenecks.
268275

269-
270-
271276
## Analyze performance (legacy tools)
272277

273-
274278
::: moniker range=">=vs-2019"
275-
In Visual Studio 2019, the legacy Performance Explorer and related profiling tools such as the Performance Wizard were folded into the Performance Profiler, which you can open using **Debug** > **Performance Profiler**. In the Performance Profiler, the available diagnostics tools depend on the target chosen and the current, open startup project. The CPU Usage tool provides the sampling capability previously supported in the Performance Wizard. The Instrumentation tool provides the instrumented profiling capability (for precise call counts and durations) that was in the Performance Wizard. Additional memory tools also appear in the Performance Profiler.
279+
Starting in Visual Studio 2019, the legacy Performance Explorer and related profiling tools such as the Performance Wizard were folded into the Performance Profiler, which you can open using **Debug** > **Performance Profiler**. In the Performance Profiler, the available diagnostics tools depend on the target chosen and the current, open startup project. The CPU Usage tool provides the sampling capability previously supported in the Performance Wizard. The Instrumentation tool provides the instrumented profiling capability (for precise call counts and durations) that was in the Performance Wizard. Additional memory tools also appear in the Performance Profiler.
276280
::: moniker-end
277281

278282
![Performance Explorer tool](../profiling/media/prof-tour-performance-explorer.png "Performance Explorer")

docs/profiling/use-file-io.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ The **File IO** tool provides file read and write information with files read du
3939
![Screenshot showing File IO tool stopped.](./media/vs-2022/file-io-after.png "File IO tool stopped")
4040

4141
## Analyze the File IO report
42+
4243
Select **File Reads** to view all the File Reads on one page and select **File Writes** for writes. If you right-click on one of the rows, you can go to the source in your code. If an aggregate row was read multiple times, expand it to see the individual read operations for that file with its frequency, if they were read multiple times.
4344

4445
![Screenshot showing File Reads selected.](./media/vs-2022/file-io-reads.png "File Reads selected")

0 commit comments

Comments
 (0)