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/profiling/profiling-with-benchmark-dotnet.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,25 +107,28 @@ Each diagnoser generates performance data related to that diagnoser. For example
107
107
Exporteddiagsessionfile:*.diagsession
108
108
```
109
109
110
-
## View Benchmark .NET data
110
+
## View BenchmarkDotNet data
111
111
112
112
1. In Visual Studio, select **File > Open > File** and navigate to the location of the *.diagsession* file, and then select and open the file.
113
113
114
-
1. Select the **Benchmark** tab to view data for the BenchmarkDotNet benchmarks.
114
+
1. Select the **Benchmarks** tab to view data for the BenchmarkDotNet benchmarks.
115
115
116
116

117
117
118
-
For more information about the results in the **Benchmark** tab, see [BenchmarkDotNet](https://benchmarkdotnet.org/articles/overview.html) documentation.
118
+
For more information about the results in the **Benchmarks** tab, see [BenchmarkDotNet](https://benchmarkdotnet.org/articles/overview.html) documentation.
119
119
120
120
1. Right-click a row in the results and choose **Select time range** to sync the timeline graph with the benchmark.
121
121
122
122
1. Select one of the available tabs such as **CPU Usage** or **Allocations**.
123
123
124
-
Depending on the diagnoser you used to collect data, you can gain insights related to memory allocation, CPU usage, counters, and other performance data. To analyze memory allocations, use the built-in [MemoryDiagnoser](https://github.com/MicrosoftDocs/visualstudio-docs-pr/pull/14006).
124
+
Depending on the diagnoser you used to collect data, you can gain insights related to memory allocation, CPU usage, counters, and other performance data. To analyze memory allocations, use the built-in [MemoryDiagnoser](https://benchmarkdotnet.org/articles/overview.html#diagnostics) by adding the \[MemoryDiagnoser\] attribute. For more information, see [Diagnosers](https://benchmarkdotnet.org/articles/configs/diagnosers.html).
125
+
126
+
> [!NOTE]
127
+
> The profiler supports only the \[MemoryDiagnoser\] and the diagnosers listed previously in this article.
125
128
126
129
For an example of using the profiler to analyze memory allocations, see the blog post [Benchmarking with Visual Studio Profiler](https://devblogs.microsoft.com/visualstudio/benchmarking-with-visual-studio-profiler/).
127
130
128
-
To analyze data related to other tabs such as **CPU Usage**, see the corresponding article in the profiling documentation.
131
+
To analyze data related to other tabs such as **CPU Usage**, see the corresponding articles in the profiling documentation.
0 commit comments