In the Android memory monitor, what is the difference between `total count` and` heap count`?

In google docs , he said what the heap countnumber of instances in the selected heap total countmeans , and the total number of instances outstanding. What is the selected heap? Always, total countmore than heap count, therefore, where are the objects other than those on the heap?

+4
source share
2 answers

There are 3 heaps in Android:

  • applications
  • Picture
  • Zygote

Total Count- the total amount in all three heaps. Heap Count- the number of objects in the currently selected heap.

See https://developer.android.com/studio/profile/am-hprof.html

+4
source

. .

+1

All Articles