rust-lang / rustc_codegen_cranelift

Cranelift based backend for rustc
Apache License 2.0
1.59k stars 100 forks source link

Improve -Ztime-passes and -Zself-profile output #1346

Closed bjorn3 closed 1 year ago

bjorn3 commented 1 year ago

-Ztime-passes is now a lot less verbose, while -Zself-profile records extra useful information like the codegen unit name, function name and cranelift timing passes when using -Z self-profile-events=default,function-args. CG_CLIF_DISPLAY_CG_TIME is now gone, but -Ztime-passes already prints out everything and it hasn't been missing a decent chunk of the compilation ever since the introduction of parallel compilation of clif ir to object files anyway.