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`.
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user