From 5531446fcf04d92807eee25c90a2224befc02663 Mon Sep 17 00:00:00 2001 From: Jonathan Wang <31040440+jonathanpwang@users.noreply.github.com> Date: Mon, 6 Jan 2025 11:29:42 -0800 Subject: [PATCH] chore: prof md doesn't need to display cycle_tracker_span --- crates/prof/src/lib.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/crates/prof/src/lib.rs b/crates/prof/src/lib.rs index dd7352d15..2cfa83357 100644 --- a/crates/prof/src/lib.rs +++ b/crates/prof/src/lib.rs @@ -4,6 +4,7 @@ use aggregate::{ EXECUTE_TIME_LABEL, PROOF_TIME_LABEL, PROVE_EXCL_TRACE_TIME_LABEL, TRACE_GEN_TIME_LABEL, }; use eyre::Result; +use itertools::Itertools; use crate::types::{Labels, Metric, MetricDb, MetricsFile}; @@ -135,6 +136,18 @@ impl MetricDb { // Fill table rows for (label_values, metrics) in metrics_dict { + // cycle_tracker_span is a long string, we don't need to display it in markdown + let label_values = label_values + .iter() + .enumerate() + .map(|(i, val)| { + if label_keys[i] == "cycle_tracker_span" { + "" + } else { + val.as_str() + } + }) + .collect_vec(); let mut row = String::new(); row.push_str("| "); row.push_str(&label_values.join(" | "));