Table of Contents

Class MetalOperationMetrics

Namespace
DotCompute.Backends.Metal.Telemetry
Assembly
DotCompute.Backends.Metal.dll

Operation-specific metrics

public sealed class MetalOperationMetrics
Inheritance
MetalOperationMetrics
Inherited Members

Constructors

MetalOperationMetrics(string, TimeSpan, bool)

public MetalOperationMetrics(string operationName, TimeSpan duration, bool success)

Parameters

operationName string
duration TimeSpan
success bool

Properties

AverageExecutionTime

public TimeSpan AverageExecutionTime { get; }

Property Value

TimeSpan

LastUpdated

public DateTimeOffset LastUpdated { get; }

Property Value

DateTimeOffset

MaxExecutionTime

public TimeSpan MaxExecutionTime { get; }

Property Value

TimeSpan

MinExecutionTime

public TimeSpan MinExecutionTime { get; }

Property Value

TimeSpan

OperationName

public string OperationName { get; }

Property Value

string

SuccessRate

public double SuccessRate { get; }

Property Value

double

SuccessfulExecutions

public long SuccessfulExecutions { get; }

Property Value

long

TotalExecutionTime

public TimeSpan TotalExecutionTime { get; }

Property Value

TimeSpan

TotalExecutions

public long TotalExecutions { get; }

Property Value

long

Methods

UpdateMetrics(TimeSpan, bool)

public void UpdateMetrics(TimeSpan duration, bool success)

Parameters

duration TimeSpan
success bool