Struct ThroughputMetric
A named throughput counter tracking monotonically increasing operations.
public readonly struct ThroughputMetric : IEquatable<ThroughputMetric>
- Implements
- Inherited Members
Remarks
Rates (ops/sec) are derived by consumers by differencing two snapshots.
Constructors
ThroughputMetric(string, long)
A named throughput counter tracking monotonically increasing operations.
public ThroughputMetric(string Name, long Count)
Parameters
Remarks
Rates (ops/sec) are derived by consumers by differencing two snapshots.
Properties
Count
Total operations since startup.
public long Count { get; init; }
Property Value
Name
Counter name (e.g., "CacheHits", "Commits").
public string Name { get; init; }
Property Value
Methods
Deconstruct(out string, out long)
public void Deconstruct(out string Name, out long Count)
Parameters
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
Equals(ThroughputMetric)
public bool Equals(ThroughputMetric other)
Parameters
otherThroughputMetric
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ThroughputMetric, ThroughputMetric)
public static bool operator ==(ThroughputMetric left, ThroughputMetric right)
Parameters
leftThroughputMetricrightThroughputMetric
Returns
operator !=(ThroughputMetric, ThroughputMetric)
public static bool operator !=(ThroughputMetric left, ThroughputMetric right)
Parameters
leftThroughputMetricrightThroughputMetric