PW.Diagnostics.Runtime
2.0.0
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Framework 4.7.1
This package targets .NET Framework 4.7.1. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package PW.Diagnostics.Runtime --version 2.0.0
NuGet\Install-Package PW.Diagnostics.Runtime -Version 2.0.0
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.0" />
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.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PW.Diagnostics.Runtime, 2.0.0"
#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.0 // Install PW.Diagnostics.Runtime as a Cake Tool #tool nuget:?package=PW.Diagnostics.Runtime&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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.
-
.NETFramework 4.7.1
- Microsoft.Diagnostics.Tracing.TraceEvent (>= 3.1.12)
- OpenTelemetry.Instrumentation.Process (>= 0.5.0-beta.6)
- OpenTelemetry.Instrumentation.Runtime (>= 1.9.0)
-
net8.0
- OpenTelemetry.Instrumentation.Process (>= 0.5.0-beta.6)
- OpenTelemetry.Instrumentation.Runtime (>= 1.9.0)
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
博客用到的代码
|