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

Side by Side Diff: compiler/scripts/build_dartc_for_perf_metrics

Issue 8344083: Cleanup the build for perf script (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 2 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 # 2 #
3 # Produce a build of dartc that can be used to measure its performance over 3 # Produce a build of dartc that can be used to measure its performance over
4 # time. This script needs to be backwards compatible with earlier 4 # time. This script needs to be backwards compatible with earlier
5 # revisions. 5 # revisions.
6 # 6 #
7 # TODO: Still need to handle revisions between r2694 and r2764. 7 # TODO: Still need to handle revisions between r2694 and r2764.
8 # 8 #
9 DARTC_REVISION=$1 9 DARTC_REVISION=$1
10 USERNAME=$2 10 USERNAME=$2
11 PASSWORD=$3 11 PASSWORD=$3
12 12
13 # Assume that revisions prior to 2694 are handled by the metrics system
14 # and do not need to be handled here.
15 if [ $DARTC_REVISION -lt 2694 ]
16 then
17 echo "Exiting; don't know how to build revisions prior to r2694"
18 exit 1
19 fi
20
21 # Checkout the depot tools 13 # Checkout the depot tools
22 svn checkout --quiet http://src.chromium.org/svn/trunk/tools/depot_tools depot_t ools 14 svn checkout --quiet http://src.chromium.org/svn/trunk/tools/depot_tools depot_t ools
23 GCLIENT_CMD=./depot_tools/gclient 15 GCLIENT_CMD=./depot_tools/gclient
24 16
25 # Make a gclient with the compiler deps only 17 # Make a gclient with the compiler deps only
26 $GCLIENT_CMD config svn://svn.chromium.org/dash/trunk/deps/compiler.deps 18 $GCLIENT_CMD config https://dart.googlecode.com/svn/branches/bleeding_edge/deps/ compiler.deps
27 19
28 # Make sure that we have access 20 # Make sure that we have access
29 svn ls --username $USERNAME --password "$PASSWORD" svn://svn.chromium.org/dash 21 svn ls --username $USERNAME --password "$PASSWORD" https://dart.googlecode.com/s vn/
30 22
31 # Try to sync to a particular revision transitively; muffle the output 23 # Try to sync to a particular revision transitively; muffle the output
32 $GCLIENT_CMD sync -r $DARTC_REVISION -t > gclient.sync.txt 24 $GCLIENT_CMD sync -r $DARTC_REVISION -t > gclient.sync.txt
33 25
34 # Build dartc 26 # Build dartc
35 cd compiler 27 cd compiler
36 ../tools/build.py --mode release --arch dartc 28 ../tools/build.py --mode release --arch dartc
37 rc=$? 29 rc=$?
38 if [ $rc -ne 0 ]; then 30 if [ $rc -ne 0 ]; then
39 exit $rc 31 exit $rc
40 fi 32 fi
41 33
42 # Give the metrics system a backwards compatible way of getting to the 34 # Give the metrics system a backwards compatible way of getting to the
43 # artifacts that it needs. 35 # artifacts that it needs.
44 cd .. 36 cd ..
45 mkdir -p prebuilt 37 mkdir -p prebuilt
46 cd prebuilt 38 cd prebuilt
47 COMPILER_OUTDIR=../compiler/out/Release_dartc 39 COMPILER_OUTDIR=../compiler/out/Release_dartc
48 cp -r $COMPILER_OUTDIR/compiler ./compiler 40 cp -r $COMPILER_OUTDIR/compiler ./compiler
49 41 GENERATED_SCRIPT_DIR=obj.target/geni/dartc
50 if [ $DARTC_REVISION -lt 2773 ]
51 then
52 GENERATED_SCRIPT_DIR=obj.target/geni
53 else
54 # Path for revisions 2773 and later.
55 GENERATED_SCRIPT_DIR=obj.target/geni/dartc
56 fi
57
58 PATH_TO_METRICS_SCRIPT=$COMPILER_OUTDIR/$GENERATED_SCRIPT_DIR 42 PATH_TO_METRICS_SCRIPT=$COMPILER_OUTDIR/$GENERATED_SCRIPT_DIR
59 cp -r $PATH_TO_METRICS_SCRIPT/dartc_run.sh . 43 cp -r $PATH_TO_METRICS_SCRIPT/dartc_run.sh .
60 cp -r $PATH_TO_METRICS_SCRIPT/dartc_size.sh . 44 cp -r $PATH_TO_METRICS_SCRIPT/dartc_size.sh .
61 cp $COMPILER_OUTDIR/d8 . 45 cp $COMPILER_OUTDIR/d8 .
62 if [ -e $PATH_TO_METRICS_SCRIPT/dartc_metrics.sh ]; then 46 if [ -e $PATH_TO_METRICS_SCRIPT/dartc_metrics.sh ]; then
63 cp $PATH_TO_METRICS_SCRIPT/dartc_metrics.sh . 47 cp $PATH_TO_METRICS_SCRIPT/dartc_metrics.sh .
64 fi 48 fi
65 49
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698