We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 409f5fb + 787d980 commit c1c2c92Copy full SHA for c1c2c92
crates/profile/src/memory_usage.rs
@@ -56,7 +56,7 @@ impl MemoryUsage {
56
}
57
58
59
-#[cfg(all(target_os = "linux", target_env = "gnu"))]
+#[cfg(all(target_os = "linux", target_env = "gnu", not(feature = "jemalloc")))]
60
fn memusage_linux() -> MemoryUsage {
61
// Linux/glibc has 2 APIs for allocator introspection that we can use: mallinfo and mallinfo2.
62
// mallinfo uses `int` fields and cannot handle memory usage exceeding 2 GB.
0 commit comments