diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2019-11-16 10:46:08 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2019-11-16 14:11:52 +0100 |
commit | 591d7ad6c18875ed2f5cc3dc4f54e0b2b53c50fc (patch) | |
tree | 0c7d30be3ff5c10f7280b8f505309a1420224914 /python/servo | |
parent | 50d5bac736fcff3882bcc8d43d7843f62a8d3c9a (diff) | |
download | servo-591d7ad6c18875ed2f5cc3dc4f54e0b2b53c50fc.tar.gz servo-591d7ad6c18875ed2f5cc3dc4f54e0b2b53c50fc.zip |
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
```
Diffstat (limited to 'python/servo')
-rw-r--r-- | python/servo/build_commands.py | 3 |
1 files changed, 3 insertions, 0 deletions
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: |