开发者

Java object browser in eclipse

开发者 https://www.devze.com 2023-03-05 13:25 出处:网络
I\'m almost sure there is tool in eclipse that will allow me to browse my application objects. There is something done for Android called allocation tracked, is there anything similar that I could use

I'm almost sure there is tool in eclipse that will allow me to browse my application objects. There is something done for Android called allocation tracked, is there anything similar that I could use in basic Java project?

I'd like to see list of objects that has been created.

What I need is list of all object in my app something l开发者_StackOverflowike this: http://developer.android.com/resources/articles/track-mem.html

I'd like to see how much memory is allocated to each object.


It looks like what you're looking for is a profiler. Here is an article on using one bundled with eclipse TPTP:

http://www.eclipse.org/articles/Article-TPTP-Profiling-Tool/tptpProfilingArticle.html

There are some articles on the web that describe different profilers:

http://slashdot.org/story/06/06/30/0053237/Java-Profilers---Which-One-Are-You-Using

The one I'm using and are very happy with is JProfiler. It's not free though.


when you run your application do it in debug mode. This allows you to set break points where the state of the application essentially freezes and you can brows the run-time stack and see the values currently associated with an Object or field.


You should use a profiler, you can dowload tptp for profiling..

0

精彩评论

暂无评论...
验证码 换一张
取 消