Skip to content

Commit c0ffd2e

Browse files
committed
Print perf measurement outputs on completion of 'perf' target.
1 parent 6d3dd0e commit c0ffd2e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mk/perf.mk

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
ifdef CFG_PERF_TOOL
33
rustc-perf$(X): stage2/rustc$(X)
44
@$(call E, perf compile: $@)
5-
$(PERF_STAGE1) -L stage2 -o $@ $(COMPILER_CRATE)
6-
rm -f $@
5+
$(PERF_STAGE1) -L stage2 -o $@ $(COMPILER_CRATE) >rustc-perf.err 2>&1
6+
$(Q)rm -f $@
77
else
88
rustc-perf$(X): stage2/rustc$(X)
9-
touch $@
9+
$(Q)touch $@
1010
endif
1111

1212
perf: check-stage2-perf rustc-perf$(X)
13+
$(Q)find test/perf -name \*.err | xargs cat
14+
$(Q)cat rustc-perf.err

0 commit comments

Comments
 (0)