diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-01-04 07:28:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-04 07:28:54 +0100 |
| commit | fbfaeb67953b1ccaf09c5eacb8ff0dcc464c3274 (patch) | |
| tree | 121d648c712a33ff9d7973a595d71c345a9de5d7 /src/test | |
| parent | 70468af5916cd13240e3c852f0921c7f325ec421 (diff) | |
| parent | 5c79624bfaf28540b739f33ffe9d2d1f132555d2 (diff) | |
| download | rust-fbfaeb67953b1ccaf09c5eacb8ff0dcc464c3274.tar.gz rust-fbfaeb67953b1ccaf09c5eacb8ff0dcc464c3274.zip | |
Rollup merge of #106274 - jyn514:dump-mono-stats, r=lqd
Add JSON output to -Zdump-mono-stats Follow-up to https://github.com/rust-lang/rust/pull/105481 r? `@lqd` cc `@wesleywiser`
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-make/dump-mono-stats/Makefile | 5 | ||||
| -rw-r--r-- | src/test/run-make/dump-mono-stats/foo.rs | 1 | ||||
| -rw-r--r-- | src/test/rustdoc-ui/z-help.stdout | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/src/test/run-make/dump-mono-stats/Makefile b/src/test/run-make/dump-mono-stats/Makefile new file mode 100644 index 00000000000..fe1112fb0a4 --- /dev/null +++ b/src/test/run-make/dump-mono-stats/Makefile @@ -0,0 +1,5 @@ +include ../../run-make-fulldeps/tools.mk + +all: + $(RUSTC) --crate-type lib foo.rs -Z dump-mono-stats=$(TMPDIR) -Zdump-mono-stats-format=json + cat $(TMPDIR)/foo.mono_items.json | $(CGREP) '"name":"bar"' diff --git a/src/test/run-make/dump-mono-stats/foo.rs b/src/test/run-make/dump-mono-stats/foo.rs new file mode 100644 index 00000000000..c5c0bc606cd --- /dev/null +++ b/src/test/run-make/dump-mono-stats/foo.rs @@ -0,0 +1 @@ +pub fn bar() {} 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) |
