Table of Contents

Struct DurationMetric

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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

Name string

Operation name (e.g., "Checkpoint", "Flush").

LastUs long

Duration of the most recent operation in microseconds.

AvgUs long

Average duration in microseconds (averaging method defined by the producing metric source).

MaxUs long

Longest 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

long

LastUs

Duration of the most recent operation in microseconds.

public long LastUs { get; init; }

Property Value

long

MaxUs

Longest operation observed (high-water mark, resettable).

public long MaxUs { get; init; }

Property Value

long

Name

Operation name (e.g., "Checkpoint", "Flush").

public string Name { get; init; }

Property Value

string

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

Name string
LastUs long
AvgUs long
MaxUs long

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(DurationMetric)

public bool Equals(DurationMetric other)

Parameters

other DurationMetric

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(DurationMetric, DurationMetric)

public static bool operator ==(DurationMetric left, DurationMetric right)

Parameters

left DurationMetric
right DurationMetric

Returns

bool

operator !=(DurationMetric, DurationMetric)

public static bool operator !=(DurationMetric left, DurationMetric right)

Parameters

left DurationMetric
right DurationMetric

Returns

bool