mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
fix some doc and comment (#629)
This commit is contained in:
@@ -346,13 +346,14 @@ public class AdviceWeaver extends ClassVisitor implements Opcodes {
|
||||
/**
|
||||
* 构建通知编织器
|
||||
*
|
||||
* @param adviceId 通知ID
|
||||
* @param isTracing 可跟踪方法调用
|
||||
* @param className 类名称
|
||||
* @param matcher 方法匹配
|
||||
* 只有匹配上的方法才会被织入通知器
|
||||
* @param affect 影响计数
|
||||
* @param cv ClassVisitor for ASM
|
||||
* @param adviceId 通知ID
|
||||
* @param isTracing 可跟踪方法调用
|
||||
* @param skipJDKTrace 是否忽略对JDK内部方法的跟踪
|
||||
* @param className 类名称
|
||||
* @param matcher 方法匹配
|
||||
* 只有匹配上的方法才会被织入通知器
|
||||
* @param affect 影响计数
|
||||
* @param cv ClassVisitor for ASM
|
||||
*/
|
||||
public AdviceWeaver(int adviceId, boolean isTracing, boolean skipJDKTrace, String className, Matcher matcher, EnhancerAffect affect, ClassVisitor cv) {
|
||||
super(Opcodes.ASM7, cv);
|
||||
|
||||
@@ -51,6 +51,7 @@ public class Enhancer implements ClassFileTransformer {
|
||||
/**
|
||||
* @param adviceId 通知编号
|
||||
* @param isTracing 可跟踪方法调用
|
||||
* @param skipJDKTrace 是否忽略对JDK内部方法的跟踪
|
||||
* @param matchingClasses 匹配中的类
|
||||
* @param methodNameMatcher 方法名匹配
|
||||
* @param affect 影响统计
|
||||
@@ -170,7 +171,7 @@ public class Enhancer implements ClassFileTransformer {
|
||||
// 成功计数
|
||||
affect.cCnt(1);
|
||||
|
||||
// 排遣间谍
|
||||
// 派遣间谍
|
||||
try {
|
||||
spy(inClassLoader);
|
||||
} catch (Throwable t) {
|
||||
@@ -265,6 +266,7 @@ public class Enhancer implements ClassFileTransformer {
|
||||
* @param inst inst
|
||||
* @param adviceId 通知ID
|
||||
* @param isTracing 可跟踪方法调用
|
||||
* @param skipJDKTrace 是否忽略对JDK内部方法的跟踪
|
||||
* @param classNameMatcher 类名匹配
|
||||
* @param methodNameMatcher 方法名匹配
|
||||
* @return 增强影响范围
|
||||
|
||||
@@ -2,7 +2,7 @@ package com.taobao.arthas.core.advisor;
|
||||
|
||||
/**
|
||||
* 方法调用跟踪<br/>
|
||||
* 当一个方法内部调用另外一个方法时,会出发此跟踪方法
|
||||
* 当一个方法内部调用另外一个方法时,会触发此跟踪方法
|
||||
* Created by vlinux on 15/5/27.
|
||||
*/
|
||||
public interface InvokeTraceable {
|
||||
|
||||
@@ -18,10 +18,11 @@ import java.util.Set;
|
||||
public class SearchUtils {
|
||||
|
||||
/**
|
||||
* 根据类名匹配,搜已经被JVM加载的类
|
||||
* 根据类名匹配,搜索已经被JVM加载的类
|
||||
*
|
||||
* @param inst inst
|
||||
* @param classNameMatcher 类名匹配
|
||||
* @param limit 最大匹配限制
|
||||
* @return 匹配的类集合
|
||||
*/
|
||||
public static Set<Class<?>> searchClass(Instrumentation inst, Matcher<String> classNameMatcher, int limit) {
|
||||
|
||||
Reference in New Issue
Block a user