Skip to content

Commit 6f78eb5

Browse files
committed
edits
1 parent d3209d0 commit 6f78eb5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

docs/profiling/profiling-with-benchmark-dotnet.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,25 +107,28 @@ Each diagnoser generates performance data related to that diagnoser. For example
107107
Exported diagsession file: *.diagsession
108108
```
109109

110-
## View Benchmark .NET data
110+
## View BenchmarkDotNet data
111111

112112
1. In Visual Studio, select **File > Open > File** and navigate to the location of the *.diagsession* file, and then select and open the file.
113113

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.
115115

116116
![Screenshot of BenchmarkDotNet data in Visual Studio.](../profiling/media/vs-2022/benchmark-dotnet-diagsession.png)
117117

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.
119119

120120
1. Right-click a row in the results and choose **Select time range** to sync the timeline graph with the benchmark.
121121

122122
1. Select one of the available tabs such as **CPU Usage** or **Allocations**.
123123

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.
125128
126129
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/).
127130

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.
129132

130133
## Related content
131134

0 commit comments

Comments
 (0)