1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
//! Arena operations. option! { narenas[ str: b"arenas.narenas\0", non_str: 2 ] => libc::c_uint | ops: r | docs: /// Current limit on the number of arenas. /// /// # Examples /// /// ``` /// # /// # #[global_allocator] /// # static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc; /// # /// # fn main() { /// use tikv_jemalloc_ctl::arenas; /// println!("number of arenas: {}", arenas::narenas::read().unwrap()); /// /// let arenas_mib = arenas::narenas::mib().unwrap(); /// println!("number of arenas: {}", arenas_mib.read().unwrap()); /// # } /// ``` mib_docs: /// See [`narenas`]. }