Where is "dump HPROF file" button in DDMS

by James Wang » Thu, 19 Nov 2009 11:05:20 GMT

Sponsored Links
 Here, http://android.git.kernel.org/?p=platform/ 
dalvik.git;a=blob_plain;f=docs/heap-profiling.html;hb=HEAD is a
description about Dalvik Heap Profiling.

In "Android 1.6 ("Donut")" section, it says "Select your application
and click the "dump HPROF file" button. ".
I can find that button in DDMS.

I found there were three items in Device menu:
1.dump device state
2.dump app state(always disabed)
3.dump radio state

Is "dump app state" button the "dump HPROF file" button?

Best Regards.



Where is "dump HPROF file" button in DDMS

by fadden » Fri, 20 Nov 2009 06:27:56 GMT


It's not in a menu.  There's a row of small button icons in the top

  show heap updates
  dump HPROF file
  cause an immediate GC
  show thread updates
  start method profiling
  halt the target VM


Sponsored Links

Where is "dump HPROF file" button in DDMS

by James Wang » Fri, 20 Nov 2009 08:56:23 GMT

 fadden, Thank you!

I tried my ddms and did not see the buttons you mentioned.

In my ddms, there is only 4 buttons:
show heap updates
cause an immediate GC
show threads updates
halt the target VM

I checked out the version of DDMS:v0.8.1.

In fact, I got 1.5 and 1.6 SDK installed in my box. And whatever
version of ddms I ran(start from shell directly), and checked out the
version of DDMS, I got the same :v0.8.1. Is that supposed to be right?


Where is "dump HPROF file" button in DDMS

by James Wang » Fri, 20 Nov 2009 10:32:14 GMT

 I have confirmed that these two buttons(dump HPROF file and start
method profiling) only appears since 2.0.
So what the document( http://android.git.kernel.org/?p=platform/  ) says
is wrong.


Where is "dump HPROF file" button in DDMS

by fadden » Sat, 21 Nov 2009 05:35:56 GMT


Yes, you're correct.  Somehow I thought it went into 1.6.  I'll fix
the docs for a future release.


Other Threads

1. AbsListView and AbsSpinner design intention versus documentation

Hi Romain ,

Sorry for the repeated message as I guess my first message  went to just one

I have following two questions related to AbsSpinner and I expect you can
clarify the situation here.

1. In my application I have extended AbsSpinner class and after compiling in
eclipse and sdk . The application works fine on emulator or on phone.
But when I compile the same application against Platform Source Code I get
an error message for layout(int delta, boolean animate) method which is an
abstract method and not a protected one for which I can override it. How to
resolve this issue?  Why in first case I did not get such error message?

2.  In your reply (above) you mentioned just copy/paste the code in your
application. I'd like to know which code you are referring to?
Is the AbsSpinner class code?

Thanks in advance


2. Me, Android, & Google guide you :-)

sekedar info, utk pemakai a10, tidak perlu instal lagi, sudah built in
aplikasi flight status khas garmin...pemakai garmin xt di nokia pasti



3. New mailing list for Android Audio Developers


5. Resource missing error, but its there.

6. Android C2DM

7. OOT: Miring di Grand Indonesia