Interface IUnifiedPerformanceMetrics
- Namespace
- DotCompute.Abstractions.Performance
- Assembly
- DotCompute.Abstractions.dll
Unified performance metrics interface that replaces all duplicate metrics implementations. This is the ONLY performance metrics interface in the entire solution.
public interface IUnifiedPerformanceMetrics
Properties
ComponentName
Gets the name of the component being measured.
string ComponentName { get; }
Property Value
Methods
Export(MetricsExportFormat)
Exports metrics in the specified format.
string Export(MetricsExportFormat format)
Parameters
formatMetricsExportFormat
Returns
GetSnapshot()
Gets a snapshot of current performance metrics.
PerformanceSnapshot GetSnapshot()
Returns
RecordDataTransfer(DataTransferMetrics)
Records a data transfer.
void RecordDataTransfer(DataTransferMetrics metrics)
Parameters
metricsDataTransferMetrics
RecordKernelExecution(KernelExecutionMetrics)
Records a kernel execution.
void RecordKernelExecution(KernelExecutionMetrics metrics)
Parameters
metricsKernelExecutionMetrics
RecordMemoryOperation(MemoryOperationMetrics)
Records a memory operation.
void RecordMemoryOperation(MemoryOperationMetrics metrics)
Parameters
metricsMemoryOperationMetrics
Reset()
Resets all metrics.
void Reset()