Skip to content
This repository was archived by the owner on Nov 22, 2018. It is now read-only.

Commit 580a647

Browse files
committed
Add -Zorbit collection
1 parent 4a79f44 commit 580a647

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

time.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,24 @@ do
3737
make >>$TIMES_DIR/raw/rustc--$DATE--$i.log
3838
done
3939

40+
# Collect data using MIR trans
41+
export RUSTFLAGS_STAGE2='-Ztime-passes -Zinput-stats -Zorbit'
42+
43+
for i in 0 1 2
44+
do
45+
echo "building, round $i"
46+
git show HEAD -s >$TIMES_DIR/raw/orbit-rustc--$DATE--$i.log
47+
touch src/librustc_trans/lib.rs
48+
make >>$TIMES_DIR/raw/orbit-rustc--$DATE--$i.log
49+
done
50+
4051
echo "processing data"
4152
cd $TIMES_DIR
4253
python $SCRIPTS_DIR/process.py rustc $DATE 3
4354
for i in 0 1 2
4455
do
4556
git add raw/rustc--$DATE--$i.log
57+
git add raw/orbit-rustc--$DATE--$i.log
4658
done
4759
git add processed/rustc--$DATE.json
4860

0 commit comments

Comments
 (0)