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.

James

--



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
left:

  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. gallery initial selection

Hi,

This is newbie question,
But I have created a gallery view with an imageswitcher above it.
It loads the images and corresponding thumbnails from the image
files.

When I first start the activity and display the screen, I would like
to set the displayed/selected
image in the the gallery and the imageview above to an specific
position in the list.

How can I do this.

Thanks in advance.
Sunil

-- 

2. Lowpass noise filtering in android

I am trying to implement a lowpass noise filter in android.....do we
have any algorithms which could help me develop a better lowpass noise
filter in android. Please help me out with this.
Thank you
Srikanth

-- 

3. Android Database Example Error

4. Save Images from Web and display in Grid View.

5. How to port a M3G app to Android?

6. limit size of input field for a Searchable

7. Guidance