How to analyse Dalvik GC behaviour?
Posted
by
HRJ
on Stack Overflow
See other posts from Stack Overflow
or by HRJ
Published on 2010-12-27T11:28:05Z
Indexed on
2010/12/27
12:53 UTC
Read the original article
Hit count: 214
I am developing an application on Android. It is a long running application that continuously processes sensor data. While running the application I see a lot of GC messages in the logcat; about one every second.
This is most probably because of objects being created and immediately de-referenced in a loop.
How do I find which objects are being created and released immediately?
All the java heap analysis tools that I have tried(*) are bothered with the counts and sizes of objects on the heap. While they are useful, I am more interested in finding out the site where temporary short-lived objects get created the most.
(*) I tried jcat
and Eclipse MAT
. I couldn't get hat
to work on the Android heap-dumps; it complained of an unsupported dump file version.
© Stack Overflow or respective owner