Struct DurationMetric
A named duration metric tracking time cost of discrete operations.
public readonly struct DurationMetric : IEquatable<DurationMetric>
- Implements
- Inherited Members
Constructors
DurationMetric(string, long, long, long)
A named duration metric tracking time cost of discrete operations.
public DurationMetric(string Name, long LastUs, long AvgUs, long MaxUs)
Parameters
NamestringOperation name (e.g., "Checkpoint", "Flush").
LastUslongDuration of the most recent operation in microseconds.
AvgUslongAverage duration in microseconds (averaging method defined by the producing metric source).
MaxUslongLongest operation observed (high-water mark, resettable).
Properties
AvgUs
Average duration in microseconds (averaging method defined by the producing metric source).
public long AvgUs { get; init; }
Property Value
LastUs
Duration of the most recent operation in microseconds.
public long LastUs { get; init; }
Property Value
MaxUs
Longest operation observed (high-water mark, resettable).
public long MaxUs { get; init; }
Property Value
Name
Operation name (e.g., "Checkpoint", "Flush").
public string Name { get; init; }
Property Value
Methods
Deconstruct(out string, out long, out long, out long)
public void Deconstruct(out string Name, out long LastUs, out long AvgUs, out long MaxUs)
Parameters
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
Equals(DurationMetric)
public bool Equals(DurationMetric other)
Parameters
otherDurationMetric
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(DurationMetric, DurationMetric)
public static bool operator ==(DurationMetric left, DurationMetric right)
Parameters
leftDurationMetricrightDurationMetric
Returns
operator !=(DurationMetric, DurationMetric)
public static bool operator !=(DurationMetric left, DurationMetric right)
Parameters
leftDurationMetricrightDurationMetric