Function metric

Source
pub fn metric(name: impl Into<String>, value: f64)
Expand description

Records a named metric on the global recorder.

The role is MetricRole::Diagnostic, so this convenience never creates a release gate. The caller defines the unit through a stable metric name.

ยงExamples

ailloli_ui_bench::metric("layout_us", 42.0);