Skip to content

Commit c75fb4c

Browse files
committed
---
yaml --- r: 5259 b: refs/heads/master c: e45c911 h: refs/heads/master i: 5257: 5715f80 5255: e8eb891 v: v3
1 parent 219334a commit c75fb4c

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: d5b2d62b201aaf8f4698fdc0a9514bf50bb5d280
2+
refs/heads/master: e45c91135ac4e8dbd49fa446ff033dc7e9070c8e

trunk/mk/perf.mk

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
perf: check-stage2-perf
1+
2+
ifdef CFG_PERF_TOOL
3+
rustc-perf$(X): stage2/rustc$(X)
4+
@$(call E, perf compile: $@)
5+
$(PERF_STAGE1) -L stage2 -o $@ $(COMPILER_CRATE)
6+
rm -f $@
7+
else
8+
rustc-perf$(X): stage2/rustc$(X)
9+
touch $@
10+
endif
11+
12+
perf: check-stage2-perf rustc-perf$(X)

trunk/mk/platform.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ifeq ($(CFG_OSTYPE), Linux)
5454
-e sched:sched_switch \
5555
-e fs:do_sys_open \
5656
-i \
57-
-r 10
57+
-r 3
5858
else
5959
ifdef CFG_VALGRIND
6060
CFG_PERF_TOOL :=\

trunk/mk/stageN.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ STAGE$(2) := $$(Q)$$(call CFG_RUN_TARG,stage$(2), \
4646
$$(CFG_VALGRIND_COMPILE) stage$(2)/rustc$$(X) \
4747
$$(CFG_RUSTC_FLAGS))
4848

49+
PERF_STAGE$(2) := $$(Q)$$(call CFG_RUN_TARG,stage$(2), \
50+
$$(CFG_PERF_TOOL) stage$(2)/rustc$$(X) \
51+
$$(CFG_RUSTC_FLAGS))
52+
4953
stage$(2)/%.o: stage$(2)/%.s
5054
@$$(call E, assemble [gcc]: $$@)
5155
$$(Q)gcc $$(CFG_GCCISH_CFLAGS) -o $$@ -c $$<

0 commit comments

Comments
 (0)