#!/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 [ "$#" -ne 3 ] then echo "Usage: $0 dart_binary benchmark_directory output_directory" echo "Example: $0 out/ReleaseIA32/dart ../golem4/benchmarks /tmp/bmu" exit 1 fi DART_BIN=$1 BENCH_DIR=$2 OUT_DIR=$3 VERBOSE_GC_TO_BMU=$(dirname "$0")/verbose_gc_to_bmu.dart INDEX_FILE=$OUT_DIR/index.html TMP=/tmp/bmu_benchmark_gallery mkdir -p $OUT_DIR echo "
" > $INDEX_FILE $DART_BIN --version 2>> $INDEX_FILE echo "