Function format_metric
Source pub fn format_metric(metric: Metric) -> &'static str
Expand description
Return the canonical string key for a Metric.
ยงExamples
use perfgate_types::Metric;
assert_eq!(perfgate_render::format_metric(Metric::WallMs), "wall_ms");
assert_eq!(perfgate_render::format_metric(Metric::MaxRssKb), "max_rss_kb");