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

Add build.print_step_rusage to config.toml #82532

Merged
merged 2 commits into from
Mar 1, 2021

Commits on Feb 25, 2021

  1. Created experimental build.print_step_rusage setting

    Intended to piggy-back on output from existing build.print_step_timings setting.
    pnkfelix committed Feb 25, 2021
    Configuration menu
    Copy the full SHA
    0d8bf72 View commit details
    Browse the repository at this point in the history
  2. Implementation of build.print_step_rusage.

    On non-unix platforms, does not try to call `getrusage` (and does not attempt to
    implement its own shim; that could be follow-on work, though its probably best
    to not invest too much effort there, versus using separate dedicated tooling).
    
    On unix platforms, calls libc::rusage and attempts to emit the subset of fields
    that are supported on Linux and Mac OS X. Omits groups of related stats which
    appear to be unsupported on the platform (due to them all remaining zero).
    
    Adjusts output to compensate for Mac using bytes instead of kb (a well known
    discrepancy on Mac OS X). However, so far I observe a lot of strange values
    (orders of magnitude wrong) reported on Mac OS X in some cases, so I would not
    trust this in that context currently.
    pnkfelix committed Feb 25, 2021
    Configuration menu
    Copy the full SHA
    f2d70c5 View commit details
    Browse the repository at this point in the history