summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-03-23 19:55:43 +0100
committerGitHub <noreply@github.com>2023-03-23 19:55:43 +0100
commitacd7f878aea29427d678d78e8a787293d378f6e5 (patch)
tree7b99e14d34ba64874be59fb1ad198385c6b33b97 /compiler/rustc_codegen_ssa/src
parentaeabe34d79a61f772e64e5fba3f1f09d4a9c9e5e (diff)
parent6c57dda44d2c9c12fdaab359c28767e4ccdb671b (diff)
downloadrust-acd7f878aea29427d678d78e8a787293d378f6e5.tar.gz
rust-acd7f878aea29427d678d78e8a787293d378f6e5.zip
Rollup merge of #107718 - Zoxc:z-time, r=nnethercote
Add `-Z time-passes-format` to allow specifying a JSON output for `-Z time-passes`

This adds back the `-Z time` option as that is useful for [my rustc benchmark tool](https://github.com/Zoxc/rcb), reverting https://github.com/rust-lang/rust/pull/102725. It now uses nanoseconds and bytes as the units so it is renamed to `time-precise`.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
-rw-r--r--compiler/rustc_codegen_ssa/src/base.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/base.rs b/compiler/rustc_codegen_ssa/src/base.rs
index 4d34b3da5f5..c3c8649dbff 100644
--- a/compiler/rustc_codegen_ssa/src/base.rs
+++ b/compiler/rustc_codegen_ssa/src/base.rs
@@ -786,6 +786,7 @@ pub fn codegen_crate<B: ExtraBackendMethods>(
             total_codegen_time,
             start_rss.unwrap(),
             end_rss,
+            tcx.sess.opts.unstable_opts.time_passes_format,
         );
     }