From 7a131c9a3782554a5b6f1caddffc0ecd421f9ab0 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Tue, 3 Dec 2019 20:29:25 +0800 Subject: [PATCH] trace command skip jdk method by default. #958 --- .../taobao/arthas/core/command/monitor200/TraceCommand.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/taobao/arthas/core/command/monitor200/TraceCommand.java b/core/src/main/java/com/taobao/arthas/core/command/monitor200/TraceCommand.java index 15c018b73..eb59fc209 100644 --- a/core/src/main/java/com/taobao/arthas/core/command/monitor200/TraceCommand.java +++ b/core/src/main/java/com/taobao/arthas/core/command/monitor200/TraceCommand.java @@ -10,6 +10,7 @@ import com.taobao.arthas.core.util.matcher.RegexMatcher; import com.taobao.arthas.core.util.matcher.TrueMatcher; import com.taobao.arthas.core.util.matcher.WildcardMatcher; import com.taobao.middleware.cli.annotations.Argument; +import com.taobao.middleware.cli.annotations.DefaultValue; import com.taobao.middleware.cli.annotations.Description; import com.taobao.middleware.cli.annotations.Name; import com.taobao.middleware.cli.annotations.Option; @@ -83,8 +84,9 @@ public class TraceCommand extends EnhancerCommand { this.pathPatterns = pathPatterns; } - @Option(shortName = "j", longName = "jdkMethodSkip") - @Description("skip jdk method trace") + @Option(longName = "skipJDKMethod") + @DefaultValue("true") + @Description("skip jdk method trace, default value true.") public void setSkipJDKTrace(boolean skipJDKTrace) { this.skipJDKTrace = skipJDKTrace; }