Table of Contents

Class QueueStatistics

Namespace
DotCompute.Backends.OpenCL.Execution
Assembly
DotCompute.Backends.OpenCL.dll

Statistics for command queue usage and pool performance. Used for monitoring, optimization, and capacity planning.

public sealed record QueueStatistics : IEquatable<QueueStatistics>
Inheritance
QueueStatistics
Implements
Inherited Members

Properties

ActiveQueues

Gets the current number of active (in-use) queues.

public int ActiveQueues { get; init; }

Property Value

int

PoolHitRate

Gets the pool hit rate as a percentage (0.0 to 1.0). Higher values indicate better pooling efficiency. Target: >0.8 (80% hit rate) for optimal performance.

public double PoolHitRate { get; }

Property Value

double

PoolHits

Gets the number of successful pool acquisitions (cache hits).

public long PoolHits { get; init; }

Property Value

long

PoolMisses

Gets the number of pool misses requiring new queue creation.

public long PoolMisses { get; init; }

Property Value

long

PooledQueues

Gets the current number of queues available in the pool.

public int PooledQueues { get; init; }

Property Value

int

QueueRecycles

Gets the total number of queues recycled back to the pool.

public long QueueRecycles { get; init; }

Property Value

long

TotalQueuesCreated

Gets the total number of queues created since initialization.

public long TotalQueuesCreated { get; init; }

Property Value

long