mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
8edd846028
Add support for Zprint-codegen-stats-json Add a flag `-Zprint-codegen-stats-json=<file>` to collect and write LLVM statistics in JSON format. It makes use of the function `llvm::PrintStatisticsJSON` in LLVM. The flag currently only obtains LLVM statistics for now, but could be used to collect more front-end statistics in the future.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.