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
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<PerformanceMetrics>
Performance metrics.
RecordExecutionTime(string, double)
Records an operation execution time.
void RecordExecutionTime(string operationName, double durationMs)