add build metrics, to gather ci stats from x.py

This tool will generate a JSON file with statistics about each
individual step to disk. It will be used in rust-lang/rust's CI to
replace the mix of scripts and log scraping we currently have to gather
this data.
This commit is contained in:
Pietro Albini 2022-02-06 23:03:55 +01:00
parent f75d884046
commit 53965d3daf
No known key found for this signature in database
GPG key ID: 3E06ABE80BAAF19C
8 changed files with 258 additions and 0 deletions

View file

@ -896,6 +896,9 @@ class RustBuild(object):
args.append("--locked")
if self.use_vendored_sources:
args.append("--frozen")
if self.get_toml("metrics", "build"):
args.append("--features")
args.append("build-metrics")
run(args, env=env, verbose=self.verbose)
def build_triple(self):