A plugin for the System.Diagnostics.DiagnosticSource package, exposing .NET runtime metrics including:
- Garbage collection collection frequencies and timings by generation/ type, pause timings and GC CPU consumption ratio
- Heap size by generation
- Bytes allocated by small/ large object heap
- JIT compilations and JIT CPU consumption ratio
- Thread pool size, scheduling delays and reasons for growing/ shrinking
- Lock contention
- Exceptions thrown, broken down by type
These metrics are essential for understanding the performance of any non-trivial application. Even if your application is well instrumented, you're only getting half the story- what the runtime is doing completes the picture.
- .NET 6.0/ .NET Framework 4.7.1
- The PW.Diagnostics.Runtime package
The package can be installed from nuget:
dotnet add package PW.Diagnostics.Runtime
See example and extension method