提交 e573e40f 编写于 作者: K kohsuke

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
上级 65ec1c24
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册