Skip to content

pengweiqhca/System.Diagnostics.Runtime

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages