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
Copy file name to clipboardExpand all lines: docs/debugger/getting-started-with-the-debugger-cpp.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ helpviewer_keywords:
11
11
author: mikejo5000
12
12
ms.author: mikejo
13
13
manager: mijacobs
14
+
ms.update-cycle: 90-days
14
15
15
16
#customer intent: As a developer, I want to use Visual Studio debugger features like stepping through my application code, viewing the call stack, setting command-line arguments, and inspecting data values.
If you use the Benchmark project template, these NuGet packages are present when you create the project.
45
+
::: moniker-end
46
+
47
+
## Create your project
48
+
49
+
::: moniker range=">=visualstudio"
50
+
The benchmark functions must be added to a .NET console application. These functions can be wrapper functions that reference other project types.
51
+
52
+
You can either create a console project and add BenchmarkDotNet support manually, or use the **Benchmark Project** template. Some of the steps described in this article are required only when you manually add BenchmarkDotNet support.
44
53
45
-
1. Create a console project.
54
+
The **Benchmark Project** template generates a fully integrated BenchmarkDotNet project with built-in support for CPU Usage profiling and Copilot insights. To use the template, select **Profiling** from the project types list when you create a new project, and then choose **Benchmark Project**.
46
55
47
-
The benchmark functions must be added to a .NET console application. These functions can be wrapper functions that reference other project types.
56
+

57
+
::: moniker-end
58
+
::: moniker range="vs-2022"
59
+
Create a console project.
60
+
61
+
The benchmark functions must be added to a .NET console application. These functions can be wrapper functions that reference other project types.
62
+
::: moniker-end
63
+
64
+
## Collect Benchmark.NET data
48
65
49
66
1. Set your build to a Release build instead of a Debug build.
50
67
@@ -54,6 +71,10 @@ Each diagnoser generates performance data related to that diagnoser. For example
54
71
55
72
For example, you can use the following code for the CPUUsageDiagnoser.
56
73
74
+
::: moniker range=">=visualstudio"
75
+
If you're using the **Benchmark Project** template, sample code is already provided in the template. If you're manually adding BenchmarkDotNet support, you can use the following example code.
0 commit comments