On Feb 9, 6:00 am, GiladH <[email protected]> wrote: > Is there a way of querying Android (or G1 or DDMS) for a list of all > currently live objects > by type and by nymber of instances. > > That is: > - your app currently have 122 objects of type MyClass > - your app currently have 201 objects of type MyOtherClass
You can generate an "hprof" dump by using "runhat"; some information is available in this thread: http://groups.google.com/group/android-developers/browse_thread/thread/e2653bff9e0eee3e/620b68305da4586e The android-specific dump must be converted with "hprof-conv"; sources are currently available here: http://bigflake.com/HprofConv.c.txt The conversion tool, and a new API for generating dumps, will be included in a future release. Once you have the hprof output, you can process it with a number of tools, including "jhat" (part of the JDK) and "MAT". --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

