added a debug switch to enable YJP profiling.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6652 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-01-14 06:22:48 +00:00
1 parent 65ec1c24f6
commit e573e40f4e
1 file changed
+7
@@ -100,6 +100,8 @@ final class MavenProcessFactory implements ProcessCache.Factory {
if(debugPort!=0)
args.add("-Xrunjdwp:transport=dt_socket,server=y,address="+debugPort);
if(yjp)
args.add("-agentlib:yjpagent=tracing");
args.addTokenized(getMavenOpts());
@@ -203,6 +205,11 @@ final class MavenProcessFactory implements ProcessCache.Factory {
public static int debugPort;
public static boolean profile = Boolean.getBoolean("hudson.maven.profile");
/**
* If true, launch Maven with YJP offline profiler agent.
*/
public static boolean yjp = Boolean.getBoolean("hudson.maven.yjp");
static {
String port = System.getProperty("hudson.maven.debugPort");