tikv_jemalloc_ctl/
arenas.rs

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