• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Convert Android heap dump to Java heap dump

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any way to convert Android heap dump to J2SE (java heap dump) programmatically?
 
Sheriff
Posts: 5555
326
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are they not the same? Perhaps you could elaborate on why you think they are different?
 
mahesh de
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

mahesh de wrote:Is there any way to convert Android heap dump to J2SE (java heap dump) programmatically?



Hi Tim,

I am not sure about the exact difference between these two formats and I don't more information on this. According to the following site, both formats are similar but not exactly the same.

http://www.vogella.com/tutorials/EclipseMemoryAnalyzer/article.html
http://blog.novoda.com/debugging-memory-leaks-on-android-for-beginners-programmatic-heap-dumping-part-1/
 
Marshal
Posts: 28257
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

mahesh de wrote:Is there any way to convert Android heap dump to J2SE (java heap dump) programmatically?



I'm surprised you ask that, given that the second link you posted answers your question (answer: Yes) and goes on to show you how to do it.
 
mahesh de
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Clapham wrote:

mahesh de wrote:Is there any way to convert Android heap dump to J2SE (java heap dump) programmatically?



I'm surprised you ask that, given that the second link you posted answers your question (answer: Yes) and goes on to show you how to do it.



Currently I am using hprof-conv tool to convert android heap dump into J2SE standard heap dump. From java I am executing following command in background hprof-conv <<path-of-android-heap-dump>> <<path-to-store-converted-file>>.

I am looking for other solutions where I don't need to interact with command prompt.
 
Paul Clapham
Marshal
Posts: 28257
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see. It would have helped if you had asked that question in the first place, then.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic