mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 01:26:32 +00:00
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.