System.out.println(String.format("illegalArgumentCount:%3d, ", illegalArgumentCount) + e.getMessage()); } } } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 结合jad/mc 命令使用 1. 使用jad反编译demo.MathGame输出到...
packagedemo;importjava.util.ArrayList;importjava.util.List;importjava.util.Random;importjava.util.concurrent.TimeUnit;publicclassMathGame{privatestaticRandomrandom=newRandom();//用于统计生成的不合法变量的个数publicintillegalArgumentCount=0;publicstaticvoidmain(String[] args)throwsInterruptedException {MathGa...
import java.util.concurrent.TimeUnit; public class MathGame { private static Random random = new Random(); //用于统计生成的不合法变量的个数 public int illegalArgumentCount = 0; public static void main(String[] args) throws InterruptedException { MathGame game = new MathGame(); //死循环,每...
System.out.println(String.format("illegalArgumentCount:%3d,", illegalArgumentCount) +e.getMessage()); } } } 综合示例 1. 使用jad反编译demo.MathGame输出到/root/MathGame.java jad --source-only demo.MathGame > /root/MathGame.java 2.按上面的代码编辑完毕以后,使用mc内存中对新的代码编译 mc /...
trace demo.MathGame run'#cost > .5' 可以用正则表匹配路径上的多个类和函数,一定程度上达到多层trace的效果。 trace -E com.test.ClassA|org.test.ClassB method1|method2|method3 4.stack 输出当前方法被调用的调用路径 很多时候我们都知道一个方法被执行,但这个方法被执行的路径非常多,或者你根本就不知道...
用Http api 执行上面的命令,注意对 JSON 双引号转义: curl-Ss-XPOSThttp://localhost:8563/api-d@-<<EOF { "action":"exec", "execTimeout": 30000, "command":"watch *MathGame prime* '#{\"params\": params,\"returnObj\": returnObj,\"throwExp\": throwExp}' -n 3 " } EOF ...
monitor Monitor method execution statistics, e.g. total/success/failure count, average rt, fail rate, etc. stack Display the stack trace for the specified class and method thread Display thread info, thread stack trace Trace the execution time of specified method invocation. ...
trace*StringUtils isBlank params[0].length==1trace*StringUtils isBlank'#cost>100' trace-E org\\.apache\\.commons\\.lang\\.StringUtils isBlank trace-E com.test.ClassA|org.test.ClassB method1|method2|method3 trace demo.MathGame run-n5trace demo.MathGame run--skipJDKMethodfalseWIKI:https:/...
[E]开启正则表达式匹配,默认为通配符匹配 [n:]执行次数限制 据执行时间来过滤: $ stack demo.MathGame primeFactors '#cost>5' Press Ctrl+C to abort. Affect(class-cnt:1 , method-cnt:1) cost in 35 ms. ts=2018-12-04 01:35:58;thread_name=main;id=1;is_daemon=false;priority=5;TCCL=sun....
public static int wuyifantime() { final int sleepTime = 1000 * 60 * new Random().nextInt(3); try { // 0 分钟到 3 分钟 Thread.sleep(sleepTime); } catch (InterruptedException e) { e.printStackTrace(); } changeobject(); return sleepTime; } public static void changeobject() { try ...