From 787d980c712e0a9a41b63f44fa075e9bf9497746 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 12 Jun 2021 15:10:07 +0300 Subject: [PATCH] minor: squelch "unused" warning --- crates/profile/src/memory_usage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/profile/src/memory_usage.rs b/crates/profile/src/memory_usage.rs index 0b0a196aeb7..fbcb9e3c28c 100644 --- a/crates/profile/src/memory_usage.rs +++ b/crates/profile/src/memory_usage.rs @@ -56,7 +56,7 @@ impl MemoryUsage { } } -#[cfg(all(target_os = "linux", target_env = "gnu"))] +#[cfg(all(target_os = "linux", target_env = "gnu", not(feature = "jemalloc")))] fn memusage_linux() -> MemoryUsage { // Linux/glibc has 2 APIs for allocator introspection that we can use: mallinfo and mallinfo2. // mallinfo uses `int` fields and cannot handle memory usage exceeding 2 GB.