diff options
| author | Joshua Nelson <github@jyn.dev> | 2022-12-29 21:08:09 +0000 |
|---|---|---|
| committer | Joshua Nelson <github@jyn.dev> | 2023-01-02 23:02:58 +0000 |
| commit | eb53eea60920e28d3c3e053b170d015be7493a74 (patch) | |
| tree | 8c55e3081e63532aa2313ec407cd3a24c9f26fca /src/test/rustdoc-ui | |
| parent | ce85c98575e3016cf2007d90a85be321e592aa96 (diff) | |
| download | rust-eb53eea60920e28d3c3e053b170d015be7493a74.tar.gz rust-eb53eea60920e28d3c3e053b170d015be7493a74.zip | |
Add json output to `-Zdump-mono-stats`
This allows analyzing the output programatically; for example, finding the item with the highest `total_estimate`. I also took the liberty of adding `untracked` tests to `rustc_session` and documentation to the unstable book for `dump-mono-items`.
Diffstat (limited to 'src/test/rustdoc-ui')
| -rw-r--r-- | src/test/rustdoc-ui/z-help.stdout | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/rustdoc-ui/z-help.stdout b/src/test/rustdoc-ui/z-help.stdout index 53677b18377..9bd6c5fedf5 100644 --- a/src/test/rustdoc-ui/z-help.stdout +++ b/src/test/rustdoc-ui/z-help.stdout @@ -35,7 +35,8 @@ -Z dump-mir-exclude-pass-number=val -- exclude the pass number when dumping MIR (used in tests) (default: no) -Z dump-mir-graphviz=val -- in addition to `.mir` files, create graphviz `.dot` files (and with `-Z instrument-coverage`, also create a `.dot` file for the MIR-derived coverage graph) (default: no) -Z dump-mir-spanview=val -- in addition to `.mir` files, create `.html` files to view spans for all `statement`s (including terminators), only `terminator` spans, or 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. - -Z dump-mono-stats=val -- output statistics about monomorphization collection (format: markdown) + -Z dump-mono-stats=val -- output statistics about monomorphization collection + -Z dump-mono-stats-format=val -- the format to use for -Z dump-mono-stats (`markdown` (default) or `json`) -Z dwarf-version=val -- version of DWARF debug information to emit (default: 2 or 4, depending on platform) -Z dylib-lto=val -- enables LTO for dylib crate type -Z emit-stack-sizes=val -- emit a section containing stack size metadata (default: no) |
