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

System.Diagnostics.PerformanceData.CounterSetInstanceCounterDataSet

Contains the collection of counter values.
public CounterData this[int counterId] { get; }

Accesses a counter value in the collection by using the specified counter identifier.

public CounterData this[string counterName] { get; }

Accesses a counter value in the collection by using the specified counter name.

public void Dispose()

Releases all unmanaged resources used by this object.