eb53eea609
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`.
6 lines
201 B
Makefile
6 lines
201 B
Makefile
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"'
|