Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: runtime/tools/bmu_benchmark_gallery.sh

Issue 1552313002: Refs #25328 Use a portable shebang (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer/tool/generate_files ('k') | sdk/bin/dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/usr/bin/env bash
2 # 2 #
3 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 # Wrapper that runs a given Dart VM over the benchmarks with --verbose_gc 7 # Wrapper that runs a given Dart VM over the benchmarks with --verbose_gc
8 # and uses the verbose_gc_to_bmu script to produce a gallery of BMU graphs. 8 # and uses the verbose_gc_to_bmu script to produce a gallery of BMU graphs.
9 9
10 if [ "$#" -ne 3 ] 10 if [ "$#" -ne 3 ]
11 then 11 then
(...skipping 17 matching lines...) Expand all
29 for NAME in `ls $BENCH_DIR` 29 for NAME in `ls $BENCH_DIR`
30 do 30 do
31 $DART_BIN --verbose_gc $BENCH_DIR/$NAME/dart/$NAME.dart 2> $TMP.gclog && 31 $DART_BIN --verbose_gc $BENCH_DIR/$NAME/dart/$NAME.dart 2> $TMP.gclog &&
32 $DART_BIN $VERBOSE_GC_TO_BMU < $TMP.gclog > $TMP.dat && 32 $DART_BIN $VERBOSE_GC_TO_BMU < $TMP.gclog > $TMP.dat &&
33 gnuplot -e "set term png; set output '$TMP.png'; set title '$NAME'; set ylab el 'BMU'; set xlabel 'Window size (ms)'; unset key; set yr [0:1]; set logscale x ; plot '$TMP.dat' with linespoints" && 33 gnuplot -e "set term png; set output '$TMP.png'; set title '$NAME'; set ylab el 'BMU'; set xlabel 'Window size (ms)'; unset key; set yr [0:1]; set logscale x ; plot '$TMP.dat' with linespoints" &&
34 mv -f $TMP.png $OUT_DIR/$NAME.png && 34 mv -f $TMP.png $OUT_DIR/$NAME.png &&
35 mv -f $TMP.gclog $OUT_DIR/$NAME.txt && 35 mv -f $TMP.gclog $OUT_DIR/$NAME.txt &&
36 echo "<a href='$NAME.txt'><img src='$NAME.png'></a>" >> $INDEX_FILE 36 echo "<a href='$NAME.txt'><img src='$NAME.png'></a>" >> $INDEX_FILE
37 done 37 done
38 echo "</body></html>" >> $INDEX_FILE 38 echo "</body></html>" >> $INDEX_FILE
OLDNEW
« no previous file with comments | « pkg/analyzer/tool/generate_files ('k') | sdk/bin/dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698