Add zygote space to Dalvik Heap

Broken by
https://android-review.googlesource.com/#/c/115446/

This change fixes it by correctly putting the zygote in Dalvik Heap
instead of Dalvik Other.

Bug: 18447855

(cherry picked from commit 7fc9176c8a)

Change-Id: I9293e5d3f55ccfb2c93c6aacbf6abc164eacb10b
This commit is contained in:
Mathieu Chartier
2014-11-19 13:34:05 -08:00
parent c3507d1098
commit 99f628286f

View File

@@ -272,6 +272,7 @@ static void read_mapinfo(FILE *fp, stats_t* stats)
subHeap = HEAP_DALVIK_LINEARALLOC;
} else if ((strstr(name, "/dev/ashmem/dalvik-alloc space") == name) ||
(strstr(name, "/dev/ashmem/dalvik-main space") == name) ||
(strstr(name, "/dev/ashmem/dalvik-zygote space") == name) ||
(strstr(name, "/dev/ashmem/dalvik-non moving space") == name)) {
// This is the regular Dalvik heap.
whichHeap = HEAP_DALVIK;