diff --git a/crates/profile/src/stop_watch.rs b/crates/profile/src/stop_watch.rs index 5e276190e5..cb6915d458 100644 --- a/crates/profile/src/stop_watch.rs +++ b/crates/profile/src/stop_watch.rs @@ -76,7 +76,11 @@ impl fmt::Display for StopWatchSpan { instructions /= 1000; prefix = "m" } - write!(f, ", {}{}i", instructions, prefix)?; + if instructions > 10000 { + instructions /= 1000; + prefix = "g" + } + write!(f, ", {}{}instr", instructions, prefix)?; } if let Some(memory) = self.memory { write!(f, ", {}", memory)?;