#!/usr/bin/env bash # # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. # Wrapper that runs a given Dart VM over the benchmarks with --verbose_gc # and uses the verbose_gc_to_bmu script to produce a gallery of BMU graphs. if test "$Argc" -ne 3 { echo "Usage: $0 dart_binary benchmark_directory output_directory" echo "Example: $0 out/ReleaseIA32/dart ../golem4/benchmarks /tmp/bmu" exit 1 } setglobal DART_BIN = $1 setglobal BENCH_DIR = $2 setglobal OUT_DIR = $3 setglobal VERBOSE_GC_TO_BMU = "$[dirname $0]/verbose_gc_to_bmu.dart" setglobal INDEX_FILE = "$OUT_DIR/index.html" setglobal TMP = '/tmp/bmu_benchmark_gallery' mkdir -p $OUT_DIR echo "
" > $INDEX_FILE $DART_BIN --version !2 2>> $INDEX_FILE echo "
" >> $INDEX_FILE
}
echo "" >> $INDEX_FILE