process: Remove use of mallinfo under Musl

This commit is contained in:
klzgrad 2019-11-30 22:37:05 +08:00
parent 12adb1c280
commit f80088b8ff

View File

@ -110,6 +110,8 @@ size_t ProcessMetrics::GetMallocUsage() {
malloc_statistics_t stats = {0};
malloc_zone_statistics(nullptr, &stats);
return stats.size_in_use;
#elif defined(OS_LINUX) && defined(__UCLIBC__)
return 0;
#elif defined(OS_LINUX) || defined(OS_ANDROID)
struct mallinfo minfo = mallinfo();
#if BUILDFLAG(USE_TCMALLOC)