Index: compiler/scripts/compiler_metrics.sh |
diff --git a/compiler/scripts/analyzer_metrics.sh b/compiler/scripts/compiler_metrics.sh |
old mode 100644 |
new mode 100755 |
similarity index 88% |
rename from compiler/scripts/analyzer_metrics.sh |
rename to compiler/scripts/compiler_metrics.sh |
index 2bd15dc4c2d0ef52ffeb18d38405b00be66910e1..923e136d02378e2e0b55dbd3ee8b8ca2763647d8 |
--- a/compiler/scripts/analyzer_metrics.sh |
+++ b/compiler/scripts/compiler_metrics.sh |
@@ -13,7 +13,7 @@ |
DART_PARAMS="--metrics " |
RUNS=3 |
ONE_DELTA="" |
-DART_ANALYZER=$(which dart_analyzer) |
+DARTC=$(which dartc) |
SAMPLE_DIR="." |
PREFIX="sample" |
SCRIPT_DIR=$(dirname $0) |
@@ -30,7 +30,7 @@ function printHelp() { |
echo " -r=, --runs= Set the number of compile samples to be executed. Defaults to $RUNS" |
echo " -d=, --one-delta= The filename, relative to DART_APP, to touch in order to trigger a one-delta compile." |
echo " -o=, --output= Directory location of sample storage" |
- echo " --analyzer= Override PATH location for analyzer script" |
+ echo " --dartc= Override PATH location for dartc script" |
echo " -p, --stats-prefix= Adds prefix to each output file (default: sample-[full|incri-[one|zero]]).txt)" |
echo " -h, --help What you see is what you get." |
echo " DART_APP Path to dart .app file to compile (depricated)" |
@@ -48,8 +48,8 @@ do |
RUNS=${i#*=};; |
--one-delta=*|-d=*) |
ONE_DELTA=${i#*=};; |
- --analyzer=*) |
- ANALYZER=${i#*=};; |
+ --dartc=*) |
+ DARTC=${i#*=};; |
--output=*|-o=*) |
SAMPLE_DIR=${i#*=};; |
--stats-prefix=*|-p=*) |
@@ -70,8 +70,8 @@ do |
esac |
done |
-if [ "" = "$ANALYZER" ] || [ ! -x $ANALYZER ]; then |
- echo "Error: Location of 'dart_analyzer' not found." |
+if [ "" = "$DARTC" ] || [ ! -x $DARTC ]; then |
+ echo "Error: Location of 'dartc' not found." |
printHelp 1 |
fi |
@@ -110,11 +110,11 @@ rm -Rf $SAMPLE_FULL $SAMPLE_INCR_ZERO $SAMPLE_INCR_ONE |
for ((i=0;i<$RUNS;i++)) do |
echo "Run $i" |
rm -Rf $OUT_DIR |
- $DART_ANALYZER $DART_PARAMS $APP >> $SAMPLE_FULL |
- $DART_ANALYZER $DART_PARAMS $APP >> $SAMPLE_INCR_ZERO |
+ $DARTC $DART_PARAMS $APP >> $SAMPLE_FULL |
+ $DARTC $DART_PARAMS $APP >> $SAMPLE_INCR_ZERO |
if [ -e $ONE_DELTA ] && [ "" != "$ONE_DELTA" ]; then |
touch $ONE_DELTA |
- $DART_ANALYZER $DART_PARAMS $APP >> $SAMPLE_INCR_ONE |
+ $DARTC $DART_PARAMS $APP >> $SAMPLE_INCR_ONE |
fi |
done |