Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
wenyuzhao committed May 23, 2024
1 parent bf83e8e commit 6b13da1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions mallockit/src/stat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,19 +129,19 @@ pub(crate) fn report() {}

#[cfg(feature = "stat")]
pub(crate) fn report() {
println!("alignment:");
eprintln!("alignment:");
for i in 0..ALIGNMENTS.len() {
println!(" - {} = {}", i, ALIGNMENTS[i].get());
eprintln!(" - {} = {}", i, ALIGNMENTS[i].get());
}
println!(" - others = {}", OTHER_ALIGNMENT.get());
println!("");
println!("size:");
eprintln!(" - others = {}", OTHER_ALIGNMENT.get());
eprintln!("");
eprintln!("size:");
for i in 0..SIZES.len() {
println!(" - {} = {}", i, SIZES[i].get());
eprintln!(" - {} = {}", i, SIZES[i].get());
}
println!(" - others = {}", OTHER_SIZE.get());
println!("");
eprintln!(" - others = {}", OTHER_SIZE.get());
eprintln!("");
while let Some(c) = COUNTERS.lock().pop() {
println!("{}: {}", c.0, c.get());
eprintln!("{}: {}", c.0, c.get());
}
}

0 comments on commit 6b13da1

Please sign in to comment.