mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
Less confusing instr stat
This commit is contained in:
@@ -76,7 +76,11 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
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)?;
|
||||
|
||||
Reference in New Issue
Block a user