tikv-jemalloc-ctl 0.4.1

A safe wrapper over jemalloc's control and introspection APIs
Documentation
//! 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`].
}