Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve -Zmeta-stats some more #102041

Merged
merged 2 commits into from
Sep 21, 2022
Merged

Commits on Sep 20, 2022

  1. Configuration menu
    Copy the full SHA
    b7dc934 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2022

  1. 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.
    nnethercote committed Sep 21, 2022
    Configuration menu
    Copy the full SHA
    a7b35b5 View commit details
    Browse the repository at this point in the history