rust/compiler/rustc_expand/src
Dylan DPC c5e7e95292
Rollup merge of #95473 - lqd:macro-expansion, r=petrochenkov
track individual proc-macro expansions in the self-profiler

As described in [this zulip thread](https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Macro.20expansion.20performance.20on.20complex.20macros/near/275063190), users don't currently have a lot of information to diagnose macro expansion performance issues. That comment suggests using the macro names to add further timing information.

This PR starts to do this for proc-macros which have the same issue, and performance problems happening in the wild in [this other zulip thread](https://rust-lang.zulipchat.com/#narrow/stream/247081-t-compiler.2Fperformance/topic/Identifying.20proc-macro.20slowdowns) could be helped by such information.

It uses the available proc-macro name to track their individual expansions with self-profiling events.

r? `@Aaron1011` who mentioned this idea originally
2022-04-05 22:58:55 +02:00
..
mbe errors: implement fallback diagnostic translation 2022-04-05 07:01:02 +01:00
mut_visit rustc_ast: Turn MutVisitor::token_visiting_enabled into a constant 2021-10-18 00:23:24 +03:00
parse re-format with new rustfmt 2021-11-30 13:08:41 -05:00
tokenstream Rework SESSION_GLOBALS API to prevent overwriting it 2021-07-08 16:16:28 +02:00
base.rs Rollup merge of #95473 - lqd:macro-expansion, r=petrochenkov 2022-04-05 22:58:55 +02:00
build.rs Include ignore message in libtest output 2022-02-24 17:36:36 -05:00
config.rs Spellchecking some comments 2022-03-30 01:39:38 -04:00
expand.rs Spellchecking some comments 2022-03-30 01:39:38 -04:00
lib.rs A new matcher representation for use in parse_tt. 2022-04-04 17:01:28 +10:00
mbe.rs Spellchecking some comments 2022-03-30 01:39:38 -04:00
module.rs Associate multiple with a crate too. 2022-03-03 18:45:25 -05:00
placeholders.rs Associate multiple with a crate too. 2022-03-03 18:45:25 -05:00
proc_macro_server.rs span: move MultiSpan 2022-04-05 07:01:00 +01:00
proc_macro.rs track proc-macro expansions in the self-profiler 2022-04-05 15:37:14 +02:00
tests.rs session: opt for enabling directionality markers 2022-04-05 07:01:03 +01:00