pedr0
pedr0

Reputation: 3011

Native Heap Maximum size and release of memory

I am a little bit confused about the native heap on android, I would like know the native heap max size, there is a way to know it?

Like

getRuntime().maxMemory()  

which I use for know the maximum limit of VM heap.

Another question is relative at how the native heap memory is released, I read that IS NOT the GC of Dalvik which free that memory, is correct? If yes, when the memory of native heap is released? Thanks a lot in advance for any suggestion. pedr0

Upvotes: 2

Views: 3096

Answers (1)

pedr0
pedr0

Reputation: 3011

I solved this issues.

For see the native heap in DDMS you have to run the DDMS standalone and add this line at the file ddms.cfg :

native=true

After that you will see that "Native Heap" Tab in DDMS.

Bye!

Upvotes: 10

Related Questions