Java Byte Code Visualizer

狂风中的少年 提交于 2019-12-29 04:24:09

问题


What could help me in helping writing highly compact(least byte code count) programs in Java.
Possibly I'm looking at:

  • A tool that tells me how many byte codes a Class or a method generates.
  • To visualize byte codes.
  • The tool could tell me which areas need optimization in terms of byte code count or cpu cycles.
  • A byte code chart would also help indicating what byte codes exist in Java and its various properties.

Any existing tools that would help me to realize this?


回答1:


Eclipse has a Byte Code Outline plug-in that shows you what Java byte code will be produced from your source code.




回答2:


The javap program that comes with the JDK can disassemble Java classes into bytecode.

You will want to refer to the Java Virtual Machine Specification to understand the meaning of all the bytecodes.




回答3:


You can try the Dr. Garbage Tools or install from Eclipse Market Place

Some screenshots:



来源:https://stackoverflow.com/questions/1391438/java-byte-code-visualizer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!