譬如下面,参数类型和返回类型是基本类型 int,但是如果是自定义类型怎么办?
@BTrace(unsafe = true)
public class BtraceTest {
@OnMethod(clazz = "Demo", method = "getResult", location = @Location(Kind.RETURN))
public static void getParamAndResultByBtrace(int param1, int param2, @Return int result) {
System.out.println("===========BTrace begin==================");
System.out.println("the first param:" + param1);
System.out.println("the second param:" + param2);
System.out.println("result: " + result);
System.out.println("===========BTrace end====================");
}
}