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

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

Issue 1133243004: Tool to compute BMU plots from GC logs. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/tools/verbose_gc_to_bmu.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2 #
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
5 # BSD-style license that can be found in the LICENSE file.
6
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.
9
10 if [ "$#" -ne 3 ]
11 then
12 echo "Usage: $0 dart_binary benchmark_directory output_directory"
13 echo "Example: $0 out/ReleaseIA32/dart ../golem4/benchmarks /tmp/bmu"
14 exit 1
15 fi
16
17 DART_BIN=$1
18 BENCH_DIR=$2
19 OUT_DIR=$3
20
21 VERBOSE_GC_TO_BMU=$(dirname "$0")/verbose_gc_to_bmu.dart
22 INDEX_FILE=$OUT_DIR/index.html
23 TMP=/tmp/bmu_benchmark_gallery
24
25 mkdir -p $OUT_DIR
26 echo "<html><body>" > $INDEX_FILE
27 $DART_BIN --version 2>> $INDEX_FILE
28 echo "<br>" >> $INDEX_FILE
29 for NAME in `ls $BENCH_DIR`
30 do
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 &&
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 &&
35 mv -f $TMP.gclog $OUT_DIR/$NAME.txt &&
36 echo "<a href='$NAME.txt'><img src='$NAME.png'></a>" >> $INDEX_FILE
37 done
38 echo "</body></html>" >> $INDEX_FILE
OLDNEW
« no previous file with comments | « no previous file | runtime/tools/verbose_gc_to_bmu.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698