mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Merge #7179
7179: Less confusing instr stat r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
d8dfcc2c0c
1 changed files with 5 additions and 1 deletions
|
@ -76,7 +76,11 @@ impl fmt::Display for StopWatchSpan {
|
||||||
instructions /= 1000;
|
instructions /= 1000;
|
||||||
prefix = "m"
|
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 {
|
if let Some(memory) = self.memory {
|
||||||
write!(f, ", {}", memory)?;
|
write!(f, ", {}", memory)?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue