Skip to content

Commit 9f1d8ba

Browse files
authored
Merge pull request #13919 from Mikejo5000/mikejo-br24
Add profiling content for WSL, Docker, Linux
2 parents 42c7d67 + 522e87a commit 9f1d8ba

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

docs/profiling/choose-performance-tool.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Support for CMake projects are the same as C++. However, you must set the execut
6868

6969
## Which tools are supported on Linux?
7070

71-
The following tools are supported with Linux as the target platform as well as Windows:
71+
The following tools are supported with Linux or WSL as the target platform as well as Windows:
7272

7373
- CPU Usage
7474
- .NET Object Allocation Tracking
73.9 KB
Loading
129 KB
Loading

docs/profiling/profiling-feature-tour.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Overview of the profiling tools"
33
description: Review the different diagnostic tools available in Visual Studio for profiling your C#, Visual Basic, C++, and F# applications.
4-
ms.date: 1/17/2025
4+
ms.date: 5/12/2025
55
ms.topic: conceptual
66
f1_keywords:
77
- vs.diagnosticshub.overview
@@ -319,6 +319,22 @@ In your UWP apps, you can enable **UI Analysis** in the **Diagnostic Tools** win
319319
::: moniker-end
320320
::: zone-end
321321

322+
::: moniker range=">=vs-2022"
323+
## Profile on WSL, Docker, and Linux
324+
325+
The profiling tools support profiling scenarios for WSL, Docker, and Linux. The tools supported on Linux and WSL are listed in [Which tools are supported on Linux?](../profiling/choose-performance-tool.md#which-tools-are-supported-on-linux)
326+
327+
- For WSL, make sure you've installed the prerequisites described in [Debug .NET Apps in WSL with Visual Studio](../debugger/debug-dotnet-core-in-wsl-2.md). Open the Performance Profiler (**Alt + F2**) and select WSL as the target.
328+
329+
![Screenshot of selecting WSL.](../profiling/media/vs-2022/prof-tour-selecting-windows-subsystem-linux.png)
330+
331+
- For Docker and Linux, make sure you're enabled for debugging and can run the app from Visual Studio before starting the profiler. For more information, see the article that best matches your scenario: [Debug apps in a local Docker container](../containers/edit-and-refresh.md), [Debug .NET Core on Linux using SSH by attaching to a process](../debugger/remote-debugging-dotnet-core-linux-with-ssh.md#prerequisites), or [Attach to a process running on a Docker container](../debugger/attach-to-process-running-in-docker-container.md).
332+
333+
Next, you can attach to a running process in the Performance Profiler (**Alt + F2**) to collect profiling data.
334+
335+
![Screenshot of selecting a running process.](../profiling/media/vs-2022/prof-tour-attach-to-running-process.png)
336+
::: moniker-end
337+
322338
::: zone pivot="programming-language-cpp"
323339
## Analyze GPU Usage (Direct3D)
324340

0 commit comments

Comments
 (0)