about summary refs log tree commit diff
path: root/library/std/src/sys/unix/process/process_unix.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-09-20 16:08:25 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-09-21 11:22:31 +1000
commita7b35b5618da9c557a8d318aa7839a96fecb4d05 (patch)
tree51573cef64569c65970848c19213271c992c93b4 /library/std/src/sys/unix/process/process_unix.rs
parentb7dc9341b5a57e120470f8bb0e4831bffab63c89 (diff)
downloadrust-a7b35b5618da9c557a8d318aa7839a96fecb4d05.tar.gz
rust-a7b35b5618da9c557a8d318aa7839a96fecb4d05.zip
Overhaul `-Zmeta-stats` output.
It's now much more like the `-Zhir-stats` output.
- Each line is preceded with `meta-stats`, which makes the provenance
  clearer and allows filtering of the output.
- Sections are now sorted in reverse order of size.
- Column headings avoid the need to repeat the word "bytes" on every line.
- Long numbers now have `_` separators for easier reading.
- Consistent use of '-' within section labels, rather than a mix of '-',
  '_', and ' '.

The code itself is shorter and easier to read thanks to:
- the `stat` macro, which encapsulates each section's encoding, avoids
  some boilerplate, and removes the need for some low-value comments;
- the `stats` vector, which replaces dozens of local variables.
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
0 files changed, 0 insertions, 0 deletions