0

Android heap dumps contains information about running methods and the local parameters of the methods? Are the method parameters stored in the heap?

user3504453
  • 1,541
  • 1
  • 10
  • 10

1 Answers1

0

That information is usually part of the stack, not the heap.

The heap contains all memory that is dynamically allocated (e.g. objects, arrays, &c).

To clarify: if you pass an Object as a parameter to a method, then its content (i.e. its members) will be in the heap, but the pointer to it is in the stack.

matiash
  • 54,791
  • 16
  • 125
  • 154
  • Thanks for your answer!! I've taken a heap dump (.hprof) from my android app using DDMS and I analyze it with Eclise Memory Analyzer. I cannot find the local variables and parameters of the methods. Do you know how can I get such information in a snapshot? – user3504453 Jul 03 '14 at 18:43