feat(alloc): Implement trim, memory_usage, and memory_stats for mimalloc

This commit is contained in:
Jade Ellis committed 2026-11-21 13:38:28 +00:00
1 parent 98d4022768
commit 9e02f5b607
5 files changed
+104 -3

No files matched your search

+4 -2
View File
@@ -9,9 +9,11 @@ pub use je::{memory_stats, memory_usage, memory_usage_stats, trim};
// mimalloc
#[cfg(all(feature = "mimalloc", any(target_env = "msvc", not(feature = "jemalloc"))))]
pub mod mimalloc;
#[cfg(all(feature = "mimalloc", any(target_env = "msvc", not(feature = "jemalloc"))))]
pub use mimalloc::{memory_stats, memory_usage, memory_usage_stats, trim};
// default
#[cfg(any(target_env = "msvc", not(feature = "jemalloc")))]
#[cfg(all(not(feature = "mimalloc"), any(target_env = "msvc", not(feature = "jemalloc"))))]
pub mod default;
#[cfg(any(target_env = "msvc", not(feature = "jemalloc")))]
#[cfg(all(not(feature = "mimalloc"), any(target_env = "msvc", not(feature = "jemalloc"))))]
pub use default::{memory_stats, memory_usage, memory_usage_stats, trim};