//! Configuration for the global allocator. use cfg_if::cfg_if; cfg_if! { if #[cfg(feature = "dhat_heap_profiling")] { #[global_allocator] static GLOBAL: dhat::Alloc = dhat::Alloc; } else if #[cfg(feature = "jemalloc")] { #[global_allocator] static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc; } }