<分区>
有没有办法在运行时获取 JVM 调用的每个方法的文本输出?
<分区>
有没有办法在运行时获取 JVM 调用的每个方法的文本输出?
最佳答案
如果您使用的是 Eclipse,您可以右键单击该方法并选择“打开调用层次结构”
我不太确定你是不是在找ASM , 用于分析字节码
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify existing classes or dynamically generate classes, directly in binary form. Provided common transformations and analysis algorithms allow to easily assemble custom complex transformations and code analysis tools.
ASM offer similar functionality as other bytecode frameworks, but it is focused on simplicity of use and performance. Because it was designed and implemented to be as small and as fast as possible, it makes it very attractive for using in dynamic systems*.
关于java - 我如何查看 Java 应用程序中调用的每个方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20202229/