2024-04-27 16:08:50 -07:00
|
|
|
//! Integration with allocators
|
2024-04-27 04:50:20 -07:00
|
|
|
|
2026-11-21 01:52:39 +00:00
|
|
|
pub mod default;
|
|
|
|
|
|
|
|
|
|
#[cfg(feature = "jemalloc")]
|
2024-05-09 15:59:08 -07:00
|
|
|
pub mod je;
|
2026-11-21 01:52:39 +00:00
|
|
|
#[cfg(feature = "jemalloc")]
|
2026-09-24 15:30:29 +02:00
|
|
|
pub use je::{memory_stats, memory_usage, memory_usage_stats, trim};
|
2024-04-27 04:50:20 -07:00
|
|
|
|
2026-11-21 01:52:39 +00:00
|
|
|
#[cfg(all(feature = "mimalloc", not(feature = "jemalloc")))]
|
|
|
|
|
pub mod mimalloc;
|
2024-04-27 16:08:50 -07:00
|
|
|
|
2026-11-21 01:52:39 +00:00
|
|
|
#[cfg(not(feature = "jemalloc"))]
|
2026-09-24 15:30:29 +02:00
|
|
|
pub use default::{memory_stats, memory_usage, memory_usage_stats, trim};
|