PW.Diagnostics.Runtime 2.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package PW.Diagnostics.Runtime --version 2.0.1                
NuGet\Install-Package PW.Diagnostics.Runtime -Version 2.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PW.Diagnostics.Runtime" Version="2.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PW.Diagnostics.Runtime --version 2.0.1                
#r "nuget: PW.Diagnostics.Runtime, 2.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PW.Diagnostics.Runtime as a Cake Addin
#addin nuget:?package=PW.Diagnostics.Runtime&version=2.0.1

// Install PW.Diagnostics.Runtime as a Cake Tool
#tool nuget:?package=PW.Diagnostics.Runtime&version=2.0.1                

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

  • .NET core 3.1 (runtime version 3.1.11+ is recommended)/ .NET 6.0/ .NET Framework 4.7.1
  • The PW.Diagnostics.Runtime package

Install it

The package can be installed from nuget:

dotnet add package PW.Diagnostics.Runtime

Integration with Opentelemetry

See example and extension method

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Framework net471 is compatible.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on PW.Diagnostics.Runtime:

Repository Stars
lindexi/lindexi_gd
博客用到的代码
Version Downloads Last updated
2.2.0 306 9/27/2024
2.1.0 117 9/18/2024
2.0.1 201 8/13/2024
2.0.0 119 7/12/2024
1.6.0 187 1/28/2024
1.5.0 1,304 11/9/2022
1.4.5 1,328 10/9/2022
1.4.4 12,202 8/10/2022
1.4.3 533 8/3/2022