Skip to content

Commit a19b6e3

Browse files
committed
Add information on multi-process analysis for CPU Usage
1 parent 836bf3e commit a19b6e3

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

docs/profiling/cpu-usage.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: CPU profiling in the Performance Profiler
33
description: Learn about the CPU profiler performance tool, which shows the CPU time and percentage spent executing code in C++, C#, Visual Basic, and JavaScript apps.
4-
ms.date: 09/05/2024
4+
ms.date: 02/19/2025
55
ms.topic: how-to
66
ms.custom: "profiling-seo"
77
author: mikejo5000
@@ -216,6 +216,25 @@ Expand the generated methods to show what's going on:
216216
- `MainPage::<GetNumberAsync>b__b` shows the activity of the tasks that call `GetNumber`.
217217
::: moniker-end
218218

219+
::: moniker range=">=vs-2022"
220+
### Analyze multi-process performance
221+
222+
Starting in Visual Studio 2022 version 17.13, you can analyze multi-process data in the CPU Usage tool. This makes it easier to analyzer performance for multi-process apps such as .NET Aspire. This features allows you to distinguish and analyze CPU utilization across processes within a single session, which provides clearer insights into resource consumption.
223+
224+
You need to collect multi-process data before you can analyze it. To collect the data, select **Collect data from multiple processes** for the CPU Usage tool in the Performance Profiler.
225+
226+
![Screenshot that shows selecting multi-process data.](../profiling/media/vs-2022/cpu-usage-collect-multi-process-data.png)
227+
228+
The timeline graph showing your app's CPU use displays performance data with distinct color coding for each process. The graphs are displayed as stacked area charts.
229+
230+
![Screenshot that shows multi-process data in the timeline.](../profiling/media/vs-2022/cpu-usage-view-multi-process-data.png)
231+
232+
You can filter processes using a dropdown on the top left of the CPU timeline graph. When you select or deselect a process, the profiler summary page and detailed reports are updated based on the new selection(s), enabling more precise analysis.
233+
234+
![Screenshot that shows multi-process filter.](../profiling/media/vs-2022/cpu-usage-multi-process-filter.png)
235+
::: moniker-end
236+
237+
219238
::: moniker range=">=vs-2022"
220239
### Collect call counts (.NET)
221240

43 KB
Loading
24.1 KB
Loading
25.1 KB
Loading

0 commit comments

Comments
 (0)