Add an option to output crate build timings #4164
Labels
A-build-execution
Area: anything dealing with executing the compiler
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-build
Currently cargo outputs a line at the end of the build like
Finished dev [unoptimized + debuginfo] target(s) in 4.78 secs
giving the overall build time. It would be nice if there was a way to get out build times for the individual crates that were built, and even timings for the individual build steps within each crate, like compiling a build script, executing a build script, compiling the crate, compiling any binaries, etc. The most useful thing to me would be to just output a JSON file, probably.The text was updated successfully, but these errors were encountered: