diff --git a/easytier/examples/cpu_hotspot_ring.rs b/easytier/examples/cpu_hotspot_ring.rs index 5548d9cb..490b6e14 100644 --- a/easytier/examples/cpu_hotspot_ring.rs +++ b/easytier/examples/cpu_hotspot_ring.rs @@ -15,6 +15,14 @@ //! Then in another terminal: //! hotpath console +#[cfg(feature = "mimalloc")] +#[global_allocator] +static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc; + +#[cfg(feature = "jemalloc")] +#[global_allocator] +static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc; + use std::net::IpAddr; use std::time::{Duration, Instant};