Table of Contents

Class PerformanceMetrics

Namespace
DotCompute.Backends.Metal.MPS
Assembly
DotCompute.Backends.Metal.dll

Performance metrics for MPS vs CPU operations.

public sealed class PerformanceMetrics
Inheritance
PerformanceMetrics
Inherited Members

Properties

TotalCPUFallbacks

public int TotalCPUFallbacks { get; }

Property Value

int

TotalMPSOperations

public int TotalMPSOperations { get; }

Property Value

int

Methods

GetCPUStatistics()

public Dictionary<MPSOperationType, (int count, TimeSpan total, TimeSpan avg)> GetCPUStatistics()

Returns

Dictionary<MPSOperationType, (int count, TimeSpan total, TimeSpan avg)>

GetDetailedMetrics()

public Dictionary<MPSOperationType, MPSPerformanceMetrics> GetDetailedMetrics()

Returns

Dictionary<MPSOperationType, MPSPerformanceMetrics>

GetMPSStatistics()

public Dictionary<MPSOperationType, (int count, TimeSpan total, TimeSpan avg)> GetMPSStatistics()

Returns

Dictionary<MPSOperationType, (int count, TimeSpan total, TimeSpan avg)>

RecordCPUFallback(MPSOperationType, TimeSpan)

public void RecordCPUFallback(MPSOperationType type, TimeSpan duration)

Parameters

type MPSOperationType
duration TimeSpan

RecordMPSOperation(MPSOperationType, TimeSpan)

public void RecordMPSOperation(MPSOperationType type, TimeSpan duration)

Parameters

type MPSOperationType
duration TimeSpan