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 like 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.