Auto merge of #75575 - marmeladema:only-measure-drop-ast, r=eddyb
Only measure time spent dropping the AST r? @eddyb
This commit is contained in:
commit
f032cba02e
1 changed files with 4 additions and 2 deletions
|
@ -348,8 +348,10 @@ pub fn run_compiler(
|
||||||
queries.global_ctxt()?;
|
queries.global_ctxt()?;
|
||||||
|
|
||||||
// Drop AST after creating GlobalCtxt to free memory
|
// Drop AST after creating GlobalCtxt to free memory
|
||||||
|
{
|
||||||
let _timer = sess.prof.generic_activity("drop_ast");
|
let _timer = sess.prof.generic_activity("drop_ast");
|
||||||
mem::drop(queries.expansion()?.take());
|
mem::drop(queries.expansion()?.take());
|
||||||
|
}
|
||||||
|
|
||||||
if sess.opts.debugging_opts.no_analysis || sess.opts.debugging_opts.ast_json {
|
if sess.opts.debugging_opts.no_analysis || sess.opts.debugging_opts.ast_json {
|
||||||
return early_exit();
|
return early_exit();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue