rust/src/bootstrap/bin
bors b97fd3e5a1 Auto merge of #82754 - rylev:rusage-windows, r=pnkfelix
Attempt to gather similar stats as rusage on Windows

A follow up to #82532. This is a bit hacked in because I think we need to discuss this before merging, but this is an attempt to gather similar metrics as `libc::rusage` on Windows.

Some comments on differences:
* Currently, we're passing `RUSAGE_CHILDREN` to `rusage` which collects statistics on all children that have been waited on and terminated. I believe this is currently just the invocation of the real `rustc` that the shim is wrapping. Does `rustc` itself spawn children processes? The windows version gets the child processes handle when spawning it, and uses that to collect the statistics. For maxrss, `rusage` will return "the resident set size of the largest child, not the maximum resident set size of the process tree.", the Windows version will only collect statistics on the wrapped `rustc` child process directly even if some theoretical sub process has a larger memory footprint.
* There might be subtle differences between `rusage`'s "resident set" and Window's "working set". The "working set" and "resident set" should both be the number of pages that are in memory and which would not cause a page fault when accessed.
* I'm not yet sure how best to get the same information that `ru_minflt`, `ru_inblock`, `ru_oublock`, `ru_nivcsw ` and `ru_nvcsw` provide.

r? `@pnkfelix`
2021-03-19 12:44:33 +00:00
..
llvm-config-wrapper.rs Fix cross-compiling LLD to different platforms 2020-04-24 11:18:59 -07:00
main.rs make suggest setup help messages better 2021-02-17 12:26:02 +05:30
rustc.rs Auto merge of #82754 - rylev:rusage-windows, r=pnkfelix 2021-03-19 12:44:33 +00:00
rustdoc.rs Remove unused --cfg stageN 2020-09-29 18:25:52 -04:00
sccache-plus-cl.rs Format the world 2019-12-22 17:42:47 -05:00