Skip to content

Commit ddb7941

Browse files
committed
a nice debugging command
1 parent 00a1cb1 commit ddb7941

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

infra/nightly.sh

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,19 @@ function perf {
6666
cp profile.js "$REPORTDIR"/profile.js
6767
}
6868

69-
for cmd in $@; do
70-
echo "Running $cmd"
71-
$cmd
72-
done
69+
function bench {
70+
racket -y time.rkt --dir "$REPORTDIR" --profile profile.json --id $id
71+
python3 infra/ratio_plot.py -t "$REPORTDIR"/timeline.json -o "$REPORTDIR"/ratio_plot.png
72+
python3 infra/point_graph.py -t "$REPORTDIR"/timeline.json -o "$REPORTDIR"/point_graph.png
73+
python3 infra/histograms.py -t "$REPORTDIR"/timeline.json -o1 "$REPORTDIR"/histogram_valid.png -o2 "$REPORTDIR"/histogram_all.png
74+
cp profile.json "$REPORTDIR"/profile.json
75+
cp profile.js "$REPORTDIR"/profile.js
76+
}
77+
78+
echo "Running $1"
79+
80+
if [ "$2" ]; then
81+
id=$2
82+
fi
83+
84+
$1

0 commit comments

Comments
 (0)