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/articles/configs/diagnosers.md
+5
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ The current Diagnosers are:
37
37
It is a cross-platform profiler that allows profile .NET code on every platform - Windows, Linux, macOS.
38
38
Please see Wojciech Nagórski's [blog post](https://wojciechnagorski.com/2020/04/cross-platform-profiling-.net-code-with-benchmarkdotnet/) for all the details.
39
39
- Threading Diagnoser (`ThreadingDiagnoser`) - .NET Core 3.0+ diagnoser that reports some Threading statistics.
40
+
- Exception Diagnoser (`ExceptionDiagnoser`) - a diagnoser that reports the frequency of exceptions thrown during the operation.
40
41
41
42
## Usage
42
43
@@ -59,6 +60,7 @@ private class Config : ManualConfig
59
60
Add(newInliningDiagnoser());
60
61
Add(newEtwProfiler());
61
62
Add(ThreadingDiagnoser.Default);
63
+
Add(ExceptionDiagnoser.Default);
62
64
}
63
65
}
64
66
```
@@ -72,6 +74,7 @@ You can also use one of the following attributes (apply it on a class that conta
72
74
[ConcurrencyVisualizerProfiler]
73
75
[NativeMemoryProfiler]
74
76
[ThreadingDiagnoser]
77
+
[ExceptionDiagnoser]
75
78
```
76
79
77
80
In BenchmarkDotNet, 1kB = 1024B, 1MB = 1024kB, and so on. The column Gen X means number of GC collections per 1000 operations for that generation.
@@ -123,3 +126,5 @@ In BenchmarkDotNet, 1kB = 1024B, 1MB = 1024kB, and so on. The column Gen X means
The `ExceptionDiagnoser` uses [AppDomain.FirstChanceException](https://learn.microsoft.com/en-us/dotnet/api/system.appdomain.firstchanceexception) API to report:
8
+
9
+
* Exception frequency: The number of exceptions thrown during the operations divided by the number of operations.
0 commit comments