net6.0.NETStandard2.0
Vostok.Sys.Metrics.PerfCounters
Published
Dec 7, 2021
4y ago
Total Downloads
505.1K
505,129
Install
dotnet add package Vostok.Sys.Metrics.PerfCounters --version 0.0.7-pre000013
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard |
README
Vostok.Sys.Metrics.PerfCounters
The Vostok.Sys.Metrics.PerfCounters library provides interface for efficient consuming Windows Performace Counters data. It uses Performance Data Helpers (PDH) API under the hood.
Examples
Performance Counter without instance
var counter = PerformanceCounterFactory
.Default
.CreateCounter("Memory", "Committed Bytes");
Performance Counter with instance
var counter = PerformanceCounterFactory
.Default
.CreateCounter("LogicalDisk", "% Idle Time", "C:");
Performance Counter for process
var counter = PerformanceCounterFactory
.Default
.CreateCounter(".NET CLR Memory", "Gen 2 Heap Size", InstanceNameProviders.DotNet.ForPid(1234));
Changes from Previous Version
No structural changes between v0.0.6 and v0.0.7-pre000013.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.