Add -Zhir-stats for collecting statistics on HIR and AST

This commit is contained in:
Michael Woerister 2016-11-04 11:37:39 -04:00
parent ac919fcd9d
commit 94e655eca6
5 changed files with 428 additions and 2 deletions

View file

@ -918,6 +918,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
"the directory the MIR is dumped into"),
perf_stats: bool = (false, parse_bool, [UNTRACKED],
"print some performance-related statistics"),
hir_stats: bool = (false, parse_bool, [UNTRACKED],
"print some statistics about AST and HIR"),
}
pub fn default_lib_output() -> CrateType {