aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/profile/src/stop_watch.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/profile/src/stop_watch.rs b/crates/profile/src/stop_watch.rs
index 5e276190e..cb6915d45 100644
--- a/crates/profile/src/stop_watch.rs
+++ b/crates/profile/src/stop_watch.rs
@@ -76,7 +76,11 @@ impl fmt::Display for StopWatchSpan {
76 instructions /= 1000; 76 instructions /= 1000;
77 prefix = "m" 77 prefix = "m"
78 } 78 }
79 write!(f, ", {}{}i", instructions, prefix)?; 79 if instructions > 10000 {
80 instructions /= 1000;
81 prefix = "g"
82 }
83 write!(f, ", {}{}instr", instructions, prefix)?;
80 } 84 }
81 if let Some(memory) = self.memory { 85 if let Some(memory) = self.memory {
82 write!(f, ", {}", memory)?; 86 write!(f, ", {}", memory)?;