mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2025-04-13 14:11:04 +00:00
process: Remove use of mallinfo under Musl
This commit is contained in:
parent
d354b449f9
commit
b904f4e9e4
1 changed files with 2 additions and 0 deletions
|
@ -119,6 +119,8 @@ size_t ProcessMetrics::GetMallocUsage() {
|
||||||
malloc_statistics_t stats = {0};
|
malloc_statistics_t stats = {0};
|
||||||
malloc_zone_statistics(nullptr, &stats);
|
malloc_zone_statistics(nullptr, &stats);
|
||||||
return stats.size_in_use;
|
return stats.size_in_use;
|
||||||
|
#elif defined(OS_LINUX) && defined(__UCLIBC__)
|
||||||
|
return 0;
|
||||||
#elif defined(OS_LINUX) || defined(OS_ANDROID)
|
#elif defined(OS_LINUX) || defined(OS_ANDROID)
|
||||||
struct mallinfo minfo = mallinfo();
|
struct mallinfo minfo = mallinfo();
|
||||||
#if BUILDFLAG(USE_TCMALLOC)
|
#if BUILDFLAG(USE_TCMALLOC)
|
||||||
|
|
Loading…
Add table
Reference in a new issue