From 591d7ad6c18875ed2f5cc3dc4f54e0b2b53c50fc Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Sat, 16 Nov 2019 10:46:08 +0100 Subject: Make Cargo print timing information to stdout This adds lines such as ``` Completed cssparser v0.27.1 custom-build in 2.4s Completed cssparser v0.27.1 custom-build (run) in 0.6s Completed cssparser v0.27.1 in 1.1s ``` --- python/servo/build_commands.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python/servo/build_commands.py') diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index aa99557c7b7..3abd74d81c9 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -627,6 +627,9 @@ class MachCommands(CommandBase): '-C', env["GSTREAMER_DIR"], ]) + # https://internals.rust-lang.org/t/exploring-crate-graph-build-times-with-cargo-build-ztimings/10975 + opts += ["-Ztimings=info"] + if very_verbose: print (["Calling", "cargo", "build"] + opts) for key in env: -- cgit v1.2.3