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

Side by Side Diff: sdk/bin/dartanalyzer_developer

Issue 23361029: Polymer tests require more heap. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | « sdk/bin/dartanalyzer ('k') | 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/bash 1 #!/bin/bash
2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 # This file is used to execute the analyzer by running the jar file. 6 # This file is used to execute the analyzer by running the jar file.
7 # It is a simple wrapper enabling us to have simpler command lines in 7 # It is a simple wrapper enabling us to have simpler command lines in
8 # the testing infrastructure. 8 # the testing infrastructure.
9 set -e 9 set -e
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 else 47 else
48 JAR_DIR="$CUR_DIR"/../../out/$DART_CONFIGURATION/dartanalyzer 48 JAR_DIR="$CUR_DIR"/../../out/$DART_CONFIGURATION/dartanalyzer
49 fi 49 fi
50 50
51 JAR_FILE="$JAR_DIR/dartanalyzer.jar" 51 JAR_FILE="$JAR_DIR/dartanalyzer.jar"
52 52
53 EXTRA_JVMARGS="-Xss2M " 53 EXTRA_JVMARGS="-Xss2M "
54 OS=`uname | tr "[A-Z]" "[a-z]"` 54 OS=`uname | tr "[A-Z]" "[a-z]"`
55 if [ "$OS" == "darwin" ] ; then 55 if [ "$OS" == "darwin" ] ; then
56 # Bump up the heap on Mac VMs, some of which default to 128M or less. 56 # Bump up the heap on Mac VMs, some of which default to 128M or less.
57 EXTRA_JVMARGS+=" -Xmx256M -client " 57 EXTRA_JVMARGS+=" -Xmx512M -client "
58 else 58 else
59 # On other architectures 59 # On other architectures
60 # -batch invocations will do better with a server vm 60 # -batch invocations will do better with a server vm
61 # invocations for analyzing a single file do better with a client vm 61 # invocations for analyzing a single file do better with a client vm
62 if [ $FOUND_BATCH -eq 0 ] ; then 62 if [ $FOUND_BATCH -eq 0 ] ; then
63 EXTRA_JVMARGS+=" -client " 63 EXTRA_JVMARGS+=" -client "
64 fi 64 fi
65 fi 65 fi
66 66
67 exec java $EXTRA_JVMARGS -jar $JAR_FILE --dart-sdk "$SDK_DIR" "$@" 67 exec java $EXTRA_JVMARGS -jar $JAR_FILE --dart-sdk "$SDK_DIR" "$@"
OLDNEW
« no previous file with comments | « sdk/bin/dartanalyzer ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698