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

System.Diagnostics.PerformanceData.CounterData

public sealed class CounterData
Contains the raw data for a counter.
public long RawValue { get; set; }

Gets or sets the raw counter data.

public long Value { get; set; }

Gets or sets the counter data.

public void Decrement()

Decrements the counter value by 1.

public void Increment()

Increments the counter value by 1.

public void IncrementBy(long value)

Increments the counter value by the specified amount.