Table of Contents

Interface IPerformanceMonitorable

Namespace
DotCompute.Abstractions.Health
Assembly
DotCompute.Abstractions.dll

Interface for components that expose performance monitoring.

public interface IPerformanceMonitorable

Methods

GetPerformanceMetricsAsync(CancellationToken)

Gets performance metrics for the component.

Task<PerformanceMetrics> GetPerformanceMetricsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<PerformanceMetrics>

Performance metrics.

RecordExecutionTime(string, double)

Records an operation execution time.

void RecordExecutionTime(string operationName, double durationMs)

Parameters

operationName string

Name of the operation.

durationMs double

Duration in milliseconds.