Android原生堆检验DDMSAndroid、DDMS

2023-09-05 09:27:16 作者:弦斷有谁聽

我遇到了麻烦从我的HTC的机堆信息 魔术运行Android 2.2.1。 我已经配置了独立的DDMS设置本地= true和使用 命令:

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

在亚行外壳setprop libc.debug.malloc 1 在亚行的shell停止 在亚行的shell启动

然而,当我尝试检查,如果该属性设置是否正确由issueing命令:

However, when I try to check if the property is set correctly by issueing the command:

在亚行外壳LS

我得到以下日志消息:

在/系统/ bin / sh的:缺少模块/system/lib/libc_malloc_debug_leak.so需要的malloc调试级别1

有人可以帮助我得到本机堆分配?

Can someone help me with getting the native heap allocations?

谢谢

奥维丹娜

推荐答案

我用这对Xoom的:http://$c$c.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

您已经有根所以在亚行重新装入并推向/系统/ lib目录应该为你工作。

You already have root so the adb remount and pushing to /system/lib should work for you.

您可以通过可能也被从源代码构建的Andr​​oid构建库。但是,这是更快的我。

You can "probably" also build that library by building Android from source. But this was quicker for me.