<PackageReference Include="System.Diagnostics.PerformanceCounter" Version="11.0.0" />

System.Diagnostics.PerformanceCounter

Represents a Windows NT performance counter component.
namespace System.Diagnostics { public sealed class PerformanceCounter : Component, ISupportInitialize { public static int DefaultFileMappingSize; public string CategoryName { get; set; } public string CounterHelp { get; } public string CounterName { get; set; } public PerformanceCounterType CounterType { get; } public PerformanceCounterInstanceLifetime InstanceLifetime { get; set; } public string InstanceName { get; set; } public string MachineName { get; set; } public long RawValue { get; set; } public bool ReadOnly { get; set; } public PerformanceCounter(); public PerformanceCounter(string categoryName, string counterName); public PerformanceCounter(string categoryName, string counterName, bool readOnly); public PerformanceCounter(string categoryName, string counterName, string instanceName); public PerformanceCounter(string categoryName, string counterName, string instanceName, bool readOnly); public PerformanceCounter(string categoryName, string counterName, string instanceName, string machineName); public void BeginInit(); public void Close(); public static void CloseSharedResources(); public long Decrement(); public void EndInit(); public long Increment(); public long IncrementBy(long value); public CounterSample NextSample(); public float NextValue(); public void RemoveInstance(); } }