Arthas-stack

作用

输出当前方法被调用的调用路径,很多时候我们都知道一个方法被执行,但这个方法被执行的路径非常多,或者你根本就不知道这个方法是从那里被执行了,此时你需要的是 stack 命令。

stack demo.MathGame run

image-20211102215005440

stack demo.MathGame primeFactors 'params[0]<0' -n 2

image-20211102215056465

stack demo.MathGame primeFactors '#cost > 0.5'

image-20211102215431192

End

posted @ 2021-11-02 21:56  BNTang  阅读(316)  评论(0)    收藏  举报