Add support for scudo native allocator.

Bug: 137795072

Test: dumpsys meminfo <PID> and verified non-zero return for Native Heap
Test: using jemalloc and using scudo.
Change-Id: I418c89eaf2eb21d64f008435fa588d22523ffdbd
This commit is contained in:
Christopher Ferris
2019-09-18 10:42:23 -07:00
parent ef530d9fa4
commit 785a8e9064

View File

@@ -257,6 +257,8 @@ static void load_maps(int pid, stats_t* stats, bool* foundSwapPss)
which_heap = HEAP_NATIVE;
} else if (base::StartsWith(name, "[anon:libc_malloc]")) {
which_heap = HEAP_NATIVE;
} else if (base::StartsWith(name, "[anon:scudo:")) {
which_heap = HEAP_NATIVE;
} else if (base::StartsWith(name, "[stack")) {
which_heap = HEAP_STACK;
} else if (base::StartsWith(name, "[anon:stack_and_tls:")) {