diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2022-12-08 19:21:08 +0000 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2022-12-14 20:17:52 +0000 |
| commit | 7611933e6af6909dbfb4f38596f8fdd4e3b57a8d (patch) | |
| tree | 72d90033498731f96dccacc68213339266f4107a /compiler/rustc_session/src | |
| parent | 74f4da44a5743e88ce2bbb76f585c02e67af83a1 (diff) | |
| download | rust-7611933e6af6909dbfb4f38596f8fdd4e3b57a8d.tar.gz rust-7611933e6af6909dbfb4f38596f8fdd4e3b57a8d.zip | |
add `-Z dump-mono-stats`
This option will output some stats from the monomorphization collection pass to a file, to show estimated sizes from each instantiation.
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/options.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index dab9c736d14..9e130287104 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -1294,6 +1294,9 @@ options! { computed `block` spans (one span encompassing a block's terminator and \ all statements). If `-Z instrument-coverage` is also enabled, create \ an additional `.html` file showing the computed coverage spans."), + dump_mono_stats: SwitchWithOptPath = (SwitchWithOptPath::Disabled, + parse_switch_with_opt_path, [UNTRACKED], + "output statistics about monomorphization collection (format: markdown)"), dwarf_version: Option<u32> = (None, parse_opt_number, [TRACKED], "version of DWARF debug information to emit (default: 2 or 4, depending on platform)"), dylib_lto: bool = (false, parse_bool, [UNTRACKED], |
