On Sep 21, 4:28 am, Nand <nandithab...@gmail.com> wrote:
> I want to find memory leaks in native code. The thread below gives
> some information about the same. I added "native=true" in ~/.android/
> ddms.cfg and started the stand alone DDMS (in windows ) and I'm also
> able to see Native Heap tab in the same.
> But no data is shown in that tab. Please let me know if I have to do
> some other settings or steps to solve the above issue.

That enables collection; you also need to enable generation.

In recent releases, you can just:

% adb shell setprop libc.debug.malloc 1
% adb shell stop
% adb shell start

(requires root)

When the app framework restarts, the debug version of malloc should be
running.

As mentioned in the thread you linked to, older versions of Android
require substituting the debug version of libc manually.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to