about summary refs log tree commit diff
path: root/compiler/rustc_session/src/code_stats.rs
AgeCommit message (Collapse)AuthorLines
2025-04-21Document why CodeStats::type_sizes is publicblyxyas-0/+2
2025-04-16Make CodeStat's type sizes a public fieldblyxyas-1/+1
2025-01-30Remove print_vtable_sizesMichael Goulet-59/+1
2024-10-27compiler: Add rustc_abi dependence to the compilerJubilee Young-1/+1
Depend on rustc_abi in compiler crates that use it indirectly but have not yet taken on that dependency, and are not entangled in my other PRs. This leaves an "excise rustc_target" step after the dust settles.
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-1/+2
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-03-22-Zprint-type-sizes: print the types of awaitees and unnamed coroutine locals.Kevin Reid-4/+14
This should assist comprehending the size of coroutines. In particular, whenever a future is suspended while awaiting another future, the latter is given the special name `__awaitee`, and now the type of the awaited future will be printed, allowing identifying caller/callee — er, I mean, poller/pollee — relationships. It would be possible to include the type name in more cases, but I thought that that might be overly verbose (`print-type-sizes` is already a lot of text) and ordinary named fields or variables are easier for readers to discover the types of.
2023-12-03rustc_session: Address all `rustc::potential_query_instability` lintsMartin Nordholts-0/+4
Instead of allowing `rustc::potential_query_instability` on the whole crate we go over each lint and allow it individually if it is safe to do. Turns out all instances were safe to allow in this crate.
2023-11-05Use the actual computed crate name for -Zprint-vtable-sizesbjorn3-1/+1
2023-10-20s/generator/coroutine/Oli Scherer-1/+1
2023-10-20s/Generator/Coroutine/Oli Scherer-6/+6
2023-07-23fix couple of clippy findings:Matthias Krüger-4/+2
filter_map_identity iter_kv_map needless_question_mark redundant_at_rest_pattern filter_next derivable_impls
2023-06-13Tweak the sort of vtable sizesMaybe Waffle-2/+6
2023-06-13Tweak names and docs for vtable statsMaybe Waffle-19/+31
2023-06-12Collect VTable stats & add `-Zprint-vtable-sizes`Maybe Waffle-1/+43
2023-03-07Simplify `sort_by` callsMaybe Waffle-9/+3
2023-02-05Sort Generator `print-type-sizes` according to their yield pointsArpad Borsos-1/+5
Especially when trying to diagnose runaway future sizes, it might be more intuitive to sort the variants according to the control flow (aka their yield points) rather than the size of the variants.
2023-01-31placate tidy.Felix S. Klock II-3/+3
2023-01-31Extend `-Z print-type-sizes` to distinguish generator upvars and locals from ↵Felix S. Klock II-4/+22
"normal" ADT fields.
2022-12-07Properly print generator interior type sizesMichael Goulet-3/+3
2022-12-07Compute generator sizes with -Zprint_type_sizesMichael Goulet-1/+2
2022-07-17avoid some `Symbol` to `String` conversionsTakayuki Maeda-3/+4
2022-03-24Vigorously refactor _session::code_stats (nfc)Jubilee Young-19/+11
2022-03-24Prettify rustc_session fmt with capturing args (nfc)Jubilee Young-14/+10
2020-08-30mv compiler to compiler/mark-0/+193