Skip to content

Commit 787d980

Browse files
committed
minor: squelch "unused" warning
1 parent 409f5fb commit 787d980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/profile/src/memory_usage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl MemoryUsage {
5656
}
5757
}
5858

59-
#[cfg(all(target_os = "linux", target_env = "gnu"))]
59+
#[cfg(all(target_os = "linux", target_env = "gnu", not(feature = "jemalloc")))]
6060
fn memusage_linux() -> MemoryUsage {
6161
// Linux/glibc has 2 APIs for allocator introspection that we can use: mallinfo and mallinfo2.
6262
// mallinfo uses `int` fields and cannot handle memory usage exceeding 2 GB.

0 commit comments

Comments
 (0)