mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Less confusing instr stat
This commit is contained in:
parent
655ac47ee3
commit
ec9e2f50f4
1 changed files with 5 additions and 1 deletions
|
@ -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)?;
|
||||
|
|
Loading…
Reference in a new issue