Skip to content

Commit dc21d95

Browse files
committed
Leave traces for future profiling.
1 parent ceb2edd commit dc21d95

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

project/Build.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ import java.nio.channels.FileLock
55

66
object DottyBuild extends Build {
77

8+
val travisMemLimit = List("-Xmx1g", "-Xss2m")
9+
810
val TRAVIS_BUILD = "dotty.travis.build"
911

1012
val agentOptions = List(
1113
// "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"
1214
// "-agentpath:/home/dark/opt/yjp-2013-build-13072/bin/linux-x86-64/libyjpagent.so"
15+
// "-agentpath:/Applications/YourKit_Java_Profiler_2015_build_15052.app/Contents/Resources/bin/mac/libyjpagent.jnilib",
16+
// "-XX:+HeapDumpOnOutOfMemoryError", "-Xmx1g", "-Xss2m"
1317
)
1418

1519
var partestLock: FileLock = null
@@ -79,7 +83,7 @@ object DottyBuild extends Build {
7983

8084
val travis_build = // propagate if this is a travis build
8185
if (sys.props.isDefinedAt(TRAVIS_BUILD))
82-
List(s"-D$TRAVIS_BUILD=${sys.props(TRAVIS_BUILD)}", "-Xmx1g", "-Xss2m")
86+
List(s"-D$TRAVIS_BUILD=${sys.props(TRAVIS_BUILD)}") ::: travisMemLimit
8387
else
8488
List()
8589

0 commit comments

Comments
 (0)