| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # | 2 # |
| 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2011, 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 # Compares a series of compiler reivsions against a target application for | 7 # Compares a series of compiler reivsions against a target application for |
| 8 # statistic collection. Outputs a gnuplot consumable table. | 8 # statistic collection. Outputs a gnuplot consumable table. |
| 9 | 9 |
| 10 APP="" | 10 APP="" |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 echo "error compiling" | 178 echo "error compiling" |
| 179 failStats $REVISION | 179 failStats $REVISION |
| 180 return 1; | 180 return 1; |
| 181 fi | 181 fi |
| 182 | 182 |
| 183 # Give the metrics system a backwards compatible way of getting to the | 183 # Give the metrics system a backwards compatible way of getting to the |
| 184 # artifacts that it needs. | 184 # artifacts that it needs. |
| 185 cd .. | 185 cd .. |
| 186 mkdir -p $ROOT_OF_REPO/compiler/revs/$REVISION/prebuilt | 186 mkdir -p $ROOT_OF_REPO/compiler/revs/$REVISION/prebuilt |
| 187 cd $ROOT_OF_REPO/compiler/revs/$REVISION/prebuilt | 187 cd $ROOT_OF_REPO/compiler/revs/$REVISION/prebuilt |
| 188 COMPILER_OUTDIR=$TMP_DIR/compiler/out/Release_dartc | 188 COMPILER_OUTDIR=$TMP_DIR/compiler/out/Release_ia32 |
| 189 cp -r $COMPILER_OUTDIR/compiler ./compiler | 189 cp -r $COMPILER_OUTDIR/compiler ./compiler |
| 190 else | 190 else |
| 191 echo "Cached prebuilt of $REVISION!" | 191 echo "Cached prebuilt of $REVISION!" |
| 192 fi | 192 fi |
| 193 | 193 |
| 194 # Short circuit if we're just filling in the build cache | 194 # Short circuit if we're just filling in the build cache |
| 195 if [ $RUNS -eq 0 ]; then | 195 if [ $RUNS -eq 0 ]; then |
| 196 echo "run in compile only mode, no stats generating" | 196 echo "run in compile only mode, no stats generating" |
| 197 return 0; | 197 return 0; |
| 198 fi | 198 fi |
| (...skipping 18 matching lines...) Expand all Loading... |
| 217 COUNT=$(( REV - LOW_REV + 1 )) | 217 COUNT=$(( REV - LOW_REV + 1 )) |
| 218 else | 218 else |
| 219 LOW_REV=$(( REV - COUNT + 1 )) | 219 LOW_REV=$(( REV - COUNT + 1 )) |
| 220 fi | 220 fi |
| 221 for (( i = REV ; i >= LOW_REV ; i-- )) | 221 for (( i = REV ; i >= LOW_REV ; i-- )) |
| 222 do | 222 do |
| 223 echo "["$( basename "$APP")": "$((REV - i + 1))"/"$COUNT", rev:$i]" | 223 echo "["$( basename "$APP")": "$((REV - i + 1))"/"$COUNT", rev:$i]" |
| 224 compileRevision $i | 224 compileRevision $i |
| 225 done | 225 done |
| 226 | 226 |
| OLD | NEW |