Table of Contents

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

string

Methods

Export(MetricsExportFormat)

Exports metrics in the specified format.

string Export(MetricsExportFormat format)

Parameters

format MetricsExportFormat

Returns

string

GetSnapshot()

Gets a snapshot of current performance metrics.

PerformanceSnapshot GetSnapshot()

Returns

PerformanceSnapshot

RecordDataTransfer(DataTransferMetrics)

Records a data transfer.

void RecordDataTransfer(DataTransferMetrics metrics)

Parameters

metrics DataTransferMetrics

RecordKernelExecution(KernelExecutionMetrics)

Records a kernel execution.

void RecordKernelExecution(KernelExecutionMetrics metrics)

Parameters

metrics KernelExecutionMetrics

RecordMemoryOperation(MemoryOperationMetrics)

Records a memory operation.

void RecordMemoryOperation(MemoryOperationMetrics metrics)

Parameters

metrics MemoryOperationMetrics

Reset()

Resets all metrics.

void Reset()