Table of Contents

Class ProfilingMetric

Namespace
DotCompute.Abstractions.Profiling
Assembly
DotCompute.Abstractions.dll

Represents a single profiling metric with metadata.

public sealed class ProfilingMetric
Inheritance
ProfilingMetric
Inherited Members

Properties

MaxValue

Gets the maximum expected value for this metric (if applicable).

public double? MaxValue { get; init; }

Property Value

double?

MinValue

Gets the minimum expected value for this metric (if applicable).

public double? MinValue { get; init; }

Property Value

double?

Name

Gets the metric name.

public required string Name { get; init; }

Property Value

string

Type

Gets the metric type.

public required ProfilingMetricType Type { get; init; }

Property Value

ProfilingMetricType

Unit

Gets the metric unit (e.g., "ms", "MB", "ops/sec").

public string? Unit { get; init; }

Property Value

string

Value

Gets the metric value.

public double Value { get; init; }

Property Value

double

Methods

Create(ProfilingMetricType, double, string, string?, double?, double?)

Creates a profiling metric.

public static ProfilingMetric Create(ProfilingMetricType type, double value, string name, string? unit = null, double? minValue = null, double? maxValue = null)

Parameters

type ProfilingMetricType
value double
name string
unit string
minValue double?
maxValue double?

Returns

ProfilingMetric