Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

enter image description here

like image 539
dor506 Avatar asked Nov 04 '22 23:11

dor506


2 Answers

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).

like image 128
Blackbelt Avatar answered Nov 09 '22 15:11

Blackbelt


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.

like image 45
Xenox Avatar answered Nov 09 '22 15:11

Xenox