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

System.Diagnostics.InstanceDataCollection

Provides a strongly typed collection of InstanceData objects.
namespace System.Diagnostics { public class InstanceDataCollection : DictionaryBase { public string CounterName { get; } public InstanceData this[string instanceName] { get; } public ICollection Keys { get; } public ICollection Values { get; } public InstanceDataCollection(string counterName); public bool Contains(string instanceName); public void CopyTo(InstanceData[] instances, int index); } }