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

System.Diagnostics.PerformanceData.CounterSet

public class CounterSet : IDisposable
Defines a set of logical counters.
namespace System.Diagnostics.PerformanceData { public class CounterSet : IDisposable { public CounterSet(Guid providerGuid, Guid counterSetGuid, CounterSetInstanceType instanceType); public void AddCounter(int counterId, CounterType counterType); public void AddCounter(int counterId, CounterType counterType, string counterName); public CounterSetInstance CreateCounterSetInstance(string instanceName); public void Dispose(); protected virtual void Dispose(bool disposing); } }