Skip to content

Commit

Permalink
chore: prof md doesn't need to display cycle_tracker_span
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Jan 6, 2025
1 parent 8f34289 commit 5531446
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions crates/prof/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};

Expand Down Expand Up @@ -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(" | "));
Expand Down

0 comments on commit 5531446

Please sign in to comment.