Nicholas Nethercote 376cbc3787 Introduce -Zmacro-stats.
It collects data about macro expansions and prints them in a table after
expansion finishes. It's very useful for detecting macro bloat,
especially for proc macros.

Details:
- It measures code snippets by pretty-printing them and then measuring
  lines and bytes. This required a bunch of additional pretty-printing
  plumbing, in `rustc_ast_pretty` and `rustc_expand`.
- The measurement is done in `MacroExpander::expand_invoc`.
- The measurements are stored in `ExtCtxt::macro_stats`.
2025-06-12 21:17:17 +10:00
..
2025-03-30 01:32:21 +03:00
2025-06-06 14:20:48 +00:00
2025-05-12 15:33:37 +02:00
2025-06-12 21:17:17 +10:00
2024-12-14 14:24:49 +00:00
2025-06-12 21:17:17 +10:00
2025-06-06 14:20:48 +00:00