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
MinValue
Gets the minimum expected value for this metric (if applicable).
public double? MinValue { get; init; }
Property Value
Name
Gets the metric name.
public required string Name { get; init; }
Property Value
Type
Gets the metric type.
public required ProfilingMetricType Type { get; init; }
Property Value
Unit
Gets the metric unit (e.g., "ms", "MB", "ops/sec").
public string? Unit { get; init; }
Property Value
Value
Gets the metric value.
public double Value { get; init; }
Property Value
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)