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

System.Diagnostics.InstanceData

public class InstanceData
Holds instance data associated with a performance counter sample.
public string InstanceName { get; }

Gets the instance name associated with this instance data.

public long RawValue { get; }

Gets the raw data value associated with the performance counter sample.

public CounterSample Sample { get; }

Gets the performance counter sample that generated this data.

public InstanceData(string instanceName, CounterSample sample)

Initializes a new instance of the InstanceData class, using the specified sample and performance counter instance.