广告

本站里的文章大部分经过自行整理与测试

2016年5月1日星期日

Eclipse - Bytecode Visualizer 插件

Bytecode Visualizer
http://www.drgarbage.com/download/
http://sourceforge.net/projects/drgarbagetools/files/eclipse/4.4/stable
官网只写支持到 eclipse 4.4 (Luna) 
http://archive.eclipse.org/eclipse/downloads/drops4/R-4.4.2-201502041700/

去下载 jar, 如下放置
eclipse\plugins\bytecode_visualizer\stable\plugins\*.jar (5个)
eclipse\plugins\bytecode_visualizer\stable\features\*.jar (3个)

然后弄个 eclipse\links\bytecode.link, 内容如下
path=C:/eclipse/plugins/bytecode_visualizer/stable

(假设你的 eclipse 在 C:\eclipse)

ubuntu 的话, 则写成
PATH=/opt/eclipse/plugins/bytecode_visualizer/stable

(假设你的 eclipse 在 /opt/eclipse)

成功的话, Window - Preferences 会多出 Dr. Garbage 设置页

在 eclipse - Navigator 选某个 ?.classOpen With - Bytecode Visualizer

Eclipse - Memory Analyzer Tool 插件

Memory Analyzer Tool 插件
http://www.eclipse.org/mat/

Help - Install New Software - Add 
MAT : http://archive.eclipse.org/mat/1.0/update-site/

查找内存泄漏 (memory leaks)与减少内存消耗

C:\>jmap -dump:format=b,file=heap.bin 3676
之后用 eclipse - File - Open File... - C:/heap.bin
可看如图报表

Eclipse - Subversion 插件

Subversion
http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA

Help - Install New Software... - Add
Subversion : http://subclipse.tigris.org/update_1.12.x

版本控制, 搞开发必要安装的工具, 已支持 eclipse 4.6 (Neon