Files
continuwuity/src/core/alloc/mod.rs
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
585 B
Rust
Raw Normal View History

//! Integration with allocators
2024-04-27 04:50:20 -07:00
// jemalloc
#[cfg(all(not(target_env = "msvc"), feature = "jemalloc"))]
2024-05-09 15:59:08 -07:00
pub mod je;
#[cfg(all(not(target_env = "msvc"), feature = "jemalloc"))]
pub use je::{memory_stats, memory_usage, memory_usage_stats, trim};
2024-04-27 04:50:20 -07:00
// mimalloc
#[cfg(all(feature = "mimalloc", any(target_env = "msvc", not(feature = "jemalloc"))))]
pub mod mimalloc;
// default
#[cfg(any(target_env = "msvc", not(feature = "jemalloc")))]
pub mod default;
#[cfg(any(target_env = "msvc", not(feature = "jemalloc")))]
pub use default::{memory_stats, memory_usage, memory_usage_stats, trim};