We have an app that is jumping from 30-something MB of memory allocation to over 500MB while navigating between activities. I can track allocations while that happens, and see WHAT is being held in memory, but I want to create an HPROF file of the heap, so I can load it into MAT and get a better idea of what's using that memory.
However, when I try to create a dump, it just shows a dotted line and spinner on the memory graph, and that keeps up (seemingly) without end. I can create dumps with lower allocation without any issues, but with 500+ MB allocated, I cannot seem to do it.
I've looked for known issues with that scenario, but can't find any. Is there a setting I can change to help it along, or something I can do to troubleshoot the problem? Without a good analysis of the heap, I am blind as to what's happening with the memory.
Note: I'm not looking for help with the memory problem itself, ATM, I'm mostly interested in how I can get a heap dump to work.
I am sure this link will help you what you finding. I did through this way Here is the link :Memory Profiler