DDMS

I'm having problems getting information about the native heap from my HTC Magic running Android 2.2.1. I configured the standalone DDMS parameter "native = true" and used the commands:

  • adb shell setprop libc.debug.malloc 1
  • adb shell break
  • adb shell launch

However, when I try to check whether the property is set correctly, it issues the command:

  • adb shell ls

I get the following log message:

  • "/ system / bin / sh: The module / system / lib / libc _malloc_debug_leak.so is missing, which is required for the debug level of malloc 1"

Can someone help me get distributed heap distributions?

Thanks,

Ove danner

+4
source share
1 answer

I use this in Xoom: http://code.google.com/p/honeycomb-sdk-united-base/source/browse/trunk/system/lib/?r=8

Download the raw file using save as, and then

adb remount adb push libc_malloc_debug_leak.so /system/lib/libc_malloc_debug_leak.so 

You already have root, so adb remount and clicking on / system / lib should work for you.

You can "probably" also build this library by creating Android from the source. But it was faster for me.

+2
source

All Articles