哪个JVM具有完整的字节码执行跟踪? [英] Which JVM has a full bytecode execution trace?

查看:131
本文介绍了哪个JVM具有完整的字节码执行跟踪?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要整个Java程序的完整字节码级执行跟踪.

I need a full bytecode-level execution trace of the entire Java program.

我发现带有SingleStep事件的JVM TI,允许我写一个代理, 会产生痕迹.但是肯定在某个地方有现成的JVM选项吗?

I found the JVM TI with the SingleStep event which allosw me to WRITE an agent which will produce the trace. But surely there is a ready-made JVM option somewhere?

推荐答案

使用Hotspot JVM的调试版本并使用-XX:+TraceBytecodes标志运行它.有关如何构建此调试JVM的信息,请参见跟踪Java字节码流.

Use a debug build of the Hotspot JVM and run it with the -XX:+TraceBytecodes flag. See Trace java bytecode stream for how to build this debug JVM.

这篇关于哪个JVM具有完整的字节码执行跟踪?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆