当前位置: 动力学知识库 > 问答 > 编程问答 >

android - Native heap tracking issue - "Native Heap" tab is empty

问题描述:

I want to track the native heap in my application.

I opened DDMS from /tools sdk's folder, as I saw in tutorials, and I do see the

"Native Heap" tab.

However when I press the "Update heap" Icon, the native heap is still empty - I don't see

any information there.

Tried that on two devices, one of them is rooted.

How do I solve this problem?

thanks!

Screenshot:

网友答案:

I had faced the same issue and manage to fix using the emulator. I had to put a file in /data called local.prop with libc.debug.malloc = 1. Than I had to close and start the emulator again. Probably it could work with the rooted mobile too (I am taking a guess).

网友答案:

May be http://bricolsoftconsulting.com/how-to-enable-native-heap-tracking-in-ddms/ can help... I tried and succeded with rooted phone as well as emulator.

分享给朋友:
您可能感兴趣的文章:
随机阅读: