java - 我如何查看 Java 应用程序中调用的每个方法?

标签 java jvm monitoring callstack

<分区>

有没有办法在运行时获取 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/

相关文章:

java - JVM 是否优化了不必要的自动装箱?

java - Java 7 JVM 是否已完全准备好投入生产?

c# - 我如何使用 TCP 在 C# 控制台应用程序中监视系统日志消息

java - 在 Java 中执行计算给出了完全错误的答案

java - 是否可以在运行时用 Java 实现接口(interface)?

jvm - 构建 OpenJDK 的说明

mysql - 自 MySQLd 5.1.63 以来,MySQL 的 mytop Perl 监视器在查询/问题方面不再有效?

java - Web 应用程序中仪表板的架构(基于 Java)

java - 巴比伦方法递归异常: stackOverFlow

java - 如何在服务器上运行 Maven Java 应用程序