As many useful sites have described in detail, one way to analyze the use of Android applications for Android is to execute "kill -10 [PID]" to start the HPROF dump. This seems to work on some devices, and logcat usually contains something like this:
I/dalvikvm(32170): threadid=3: reacting to signal 10
I/dalvikvm(32170): SIGUSR1 forcing GC and HPROF dump
I/dalvikvm(32170): hprof: dumping VM heap to "/data/misc/heap-dump-tm1302633572-pid32170.hprof-hptemp".
I/dalvikvm(32170): hprof: dumping heap strings to "/data/misc/heap-dump-tm1302633572- pid32170.hprof".
I/dalvikvm(32170): hprof: heap dump completed, temp file removed
However, on other devices, executing "kill -10" results in the following:
I/dalvikvm( 5687): threadid=4: reacting to signal 10
I/dalvikvm( 5687): SIGUSR1 forcing GC (no HPROF)
All the devices on which I am trying to enable this are rooted, and I made sure that chmod / data / misc to 777. I do not receive any error messages after executing "kill -10".
In case this is useful, here are the devices where I get the HPROF dump: HTC ACE (Desire HD), HTC G1, HTC Nexus One (T-Mobile)
, HPROF:
Nexus S, Droid, Droid X, Nexus One (AT & T)
HPROF -, , ?