I am trying to reduce the memory usage of my app.I started by fixing memory leaks in my code.This reduced the Dalvik heap space considerably but no difference in the native heap space allocated.
Is there a way I can reduce my native heap space consumption. If so, how should I go about doing it?
Heres what my app's heap dump looks like ""
Pss Private Private Swapped Heap Heap Heap
Total Dirty Clean Dirty Size Alloc Free
------ ------ ------ ------ ------ ------ ------
Native Heap 27240 27208 0 0 57344 24872 32471
Dalvik Heap 27138 26804 0 0 49430 41737 7693
Dalvik Other 624 624 0 0
Stack 924 924 0 0
Gfx dev 8738 5788 0 0
Other dev 16 0 16 0
.so mmap 833 332 124 0
.apk mmap 634 0 176 0
.ttf mmap 32 0 0 0
.dex mmap 12484 0 12480 0
.oat mmap 1146 0 124 0
.art mmap 1395 1212 4 0
Other mmap 44 4 0 0
Unknown 160 160 0 0
TOTAL 81408 63056 12924 0 106774 66609 40164
Objects
Views: 919 ViewRootImpl: 1
AppContexts: 3 Activities: 1
Assets: 214 AssetManagers: 214
Local Binders: 85 Proxy Binders: 22
Parcel memory: 24 Parcel count: 96
Death Recipients: 0 OpenSSL Sockets: 3
SQL
MEMORY_USED: 0
PAGECACHE_OVERFLOW: 0 MALLOC_SIZE: 0