From dc21d958f07f8bd750cb729a0d783fb5269d15fd Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Thu, 30 Apr 2015 15:26:36 +0200 Subject: Leave traces for future profiling. --- project/Build.scala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'project/Build.scala') diff --git a/project/Build.scala b/project/Build.scala index 9d145c2c9..b395f6f09 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -5,11 +5,15 @@ import java.nio.channels.FileLock object DottyBuild extends Build { + val travisMemLimit = List("-Xmx1g", "-Xss2m") + val TRAVIS_BUILD = "dotty.travis.build" val agentOptions = List( // "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005" // "-agentpath:/home/dark/opt/yjp-2013-build-13072/bin/linux-x86-64/libyjpagent.so" + // "-agentpath:/Applications/YourKit_Java_Profiler_2015_build_15052.app/Contents/Resources/bin/mac/libyjpagent.jnilib", + // "-XX:+HeapDumpOnOutOfMemoryError", "-Xmx1g", "-Xss2m" ) var partestLock: FileLock = null @@ -79,7 +83,7 @@ object DottyBuild extends Build { val travis_build = // propagate if this is a travis build if (sys.props.isDefinedAt(TRAVIS_BUILD)) - List(s"-D$TRAVIS_BUILD=${sys.props(TRAVIS_BUILD)}", "-Xmx1g", "-Xss2m") + List(s"-D$TRAVIS_BUILD=${sys.props(TRAVIS_BUILD)}") ::: travisMemLimit else List() -- cgit v1.2.3