Table of Contents

Struct ThroughputMetric

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

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

Name string

Counter name (e.g., "CacheHits", "Commits").

Count long

Total operations since startup.

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

long

Name

Counter name (e.g., "CacheHits", "Commits").

public string Name { get; init; }

Property Value

string

Methods

Deconstruct(out string, out long)

public void Deconstruct(out string Name, out long Count)

Parameters

Name string
Count long

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(ThroughputMetric)

public bool Equals(ThroughputMetric other)

Parameters

other ThroughputMetric

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ThroughputMetric, ThroughputMetric)

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

Parameters

left ThroughputMetric
right ThroughputMetric

Returns

bool

operator !=(ThroughputMetric, ThroughputMetric)

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

Parameters

left ThroughputMetric
right ThroughputMetric

Returns

bool