Struct MessageQueueStatistics
- Namespace
- DotCompute.Abstractions.RingKernels
- Assembly
- DotCompute.Abstractions.dll
Statistics for monitoring message queue performance.
public struct MessageQueueStatistics : IEquatable<MessageQueueStatistics>
- Implements
- Inherited Members
Properties
AverageLatencyUs
Average message latency (microseconds from enqueue to dequeue).
public double AverageLatencyUs { readonly get; init; }
Property Value
DequeueThroughput
Average dequeue throughput (messages per second).
public double DequeueThroughput { readonly get; init; }
Property Value
EnqueueThroughput
Average enqueue throughput (messages per second).
public double EnqueueThroughput { readonly get; init; }
Property Value
TotalDequeued
Total messages dequeued since initialization.
public long TotalDequeued { readonly get; init; }
Property Value
TotalDropped
Total messages dropped due to full queue.
public long TotalDropped { readonly get; init; }
Property Value
TotalEnqueued
Total messages enqueued since initialization.
public long TotalEnqueued { readonly get; init; }
Property Value
Utilization
Current queue utilization (0.0 to 1.0).
public double Utilization { readonly get; init; }
Property Value
Methods
Equals(MessageQueueStatistics)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MessageQueueStatistics other)
Parameters
otherMessageQueueStatisticsAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(MessageQueueStatistics, MessageQueueStatistics)
Determines whether two instances are equal.
public static bool operator ==(MessageQueueStatistics left, MessageQueueStatistics right)
Parameters
leftMessageQueueStatisticsrightMessageQueueStatistics
Returns
operator !=(MessageQueueStatistics, MessageQueueStatistics)
Determines whether two instances are not equal.
public static bool operator !=(MessageQueueStatistics left, MessageQueueStatistics right)
Parameters
leftMessageQueueStatisticsrightMessageQueueStatistics