Skip to content

Commit

Permalink
Make rerun print even nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Feb 7, 2024
1 parent 83f88b5 commit edb9231
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions crates/rerun/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,17 +525,19 @@ impl PrintCommand {
} else {
table.compute_all_size_bytes();

let column_names = table
.columns
.keys()
.map(|name| name.short_name())
.collect_vec();
let column_names =
table.columns.keys().map(|name| name.short_name()).join(" ");

let entity_paths = if table.col_entity_path.len() == 1 {
format!("{:?}", table.col_entity_path[0])
} else {
format!("{} different entity paths", table.col_entity_path.len())
};

println!(
"Table with {} rows ({}). Columns: {:?}",
"Table with {} rows ({}) - {entity_paths} - columns: [{column_names}]",
table.num_rows(),
re_format::format_bytes(table.heap_size_bytes() as _),
column_names
);
}
}
Expand Down

0 comments on commit edb9231

Please sign in to comment.