trace command skip jdk method by default. #958

pull/966/head
hengyunabc 5 years ago
parent 3892fb12c6
commit 7a131c9a37

@ -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.TrueMatcher;
import com.taobao.arthas.core.util.matcher.WildcardMatcher; import com.taobao.arthas.core.util.matcher.WildcardMatcher;
import com.taobao.middleware.cli.annotations.Argument; 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.Description;
import com.taobao.middleware.cli.annotations.Name; import com.taobao.middleware.cli.annotations.Name;
import com.taobao.middleware.cli.annotations.Option; import com.taobao.middleware.cli.annotations.Option;
@ -83,8 +84,9 @@ public class TraceCommand extends EnhancerCommand {
this.pathPatterns = pathPatterns; this.pathPatterns = pathPatterns;
} }
@Option(shortName = "j", longName = "jdkMethodSkip") @Option(longName = "skipJDKMethod")
@Description("skip jdk method trace") @DefaultValue("true")
@Description("skip jdk method trace, default value true.")
public void setSkipJDKTrace(boolean skipJDKTrace) { public void setSkipJDKTrace(boolean skipJDKTrace) {
this.skipJDKTrace = skipJDKTrace; this.skipJDKTrace = skipJDKTrace;
} }

Loading…
Cancel
Save