[android-developers] Re: in-memory live object histogram

2009-02-10 Thread GiladH
I only have G1... Isn't there a way, maybe a poorly documented one, for chmod 777 G1 ? GiladH On Feb 11, 2:35 am, fadden wrote: > On Feb 10, 4:41 am,GiladH wrote: > > > 1. hprof only works on emulator (unless i'm missing something). i > > would much prefer to analize mem usage > >     on the de

[android-developers] Re: in-memory live object histogram

2009-02-10 Thread fadden
On Feb 10, 4:41 am, GiladH wrote: > 1. hprof only works on emulator (unless i'm missing something). i > would much prefer to analize mem usage >     on the device itself. Is there a tool that does it? As implemented in 1.0 it requires root access (you need to "chmod 777 / data/misc"). This can

[android-developers] Re: in-memory live object histogram

2009-02-10 Thread GiladH
Tnx Fadden. Two more issues: 1. hprof only works on emulator (unless i'm missing something). i would much prefer to analize mem usage on the device itself. Is there a tool that does it? 2. when used on the emulator, hprof measure an amazing level of mem usage by rather 'trivial' classes

[android-developers] Re: in-memory live object histogram

2009-02-09 Thread fadden
On Feb 9, 6:00 am, GiladH wrote: > Is there a way of querying Android (or G1 or DDMS) for a list of all > currently live objects > by type and by nymber of instances. > > That is: >    - your app currently have 122 objects of type MyClass >    - your app currently have 201 objects of type MyOther