We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b759b22 commit 0fea007Copy full SHA for 0fea007
src/bootstrap/builder.rs
@@ -1,4 +1,4 @@
1
-use std::any::Any;
+use std::any::{type_name, Any};
2
use std::cell::{Cell, RefCell};
3
use std::collections::BTreeSet;
4
use std::env;
@@ -1763,7 +1763,16 @@ impl<'a> Builder<'a> {
1763
};
1764
1765
if self.config.print_step_timings && !self.config.dry_run {
1766
- println!("[TIMING] {:?} -- {}.{:03}", step, dur.as_secs(), dur.subsec_millis());
+ let step_string = format!("{:?}", step);
1767
+ let brace_index = step_string.find("{").unwrap_or(0);
1768
+ let type_string = type_name::<S>();
1769
+ println!(
1770
+ "[TIMING] {} {} -- {}.{:03}",
1771
+ &type_string.strip_prefix("bootstrap::").unwrap_or(type_string),
1772
+ &step_string[brace_index..],
1773
+ dur.as_secs(),
1774
+ dur.subsec_millis()
1775
+ );
1776
}
1777
1778
{
0 commit comments