Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 1.43 KB

README.md

File metadata and controls

25 lines (21 loc) · 1.43 KB

PW.Diagnostics.Runtime

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.

Using this package

Requirements

Install it

The package can be installed from nuget:

dotnet add package PW.Diagnostics.Runtime

Integration with Opentelemetry

See example and extension method