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
//! `jemalloc`'s build-time configuration. option! { malloc_conf[ str: b"config.malloc_conf\0", str: 2 ] => &'static str | ops: r | docs: /// Default run-time options specified during `jemalloc`'s build configuration. /// /// The string will be empty unless `--with-malloc-conf` was specified /// during build configuration. /// /// # Examples /// /// ``` /// # #[global_allocator] /// # static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc; /// # /// # fn main() { /// use tikv_jemalloc_ctl::config; /// let malloc_conf = config::malloc_conf::mib().unwrap(); /// println!("default malloc conf: {}", malloc_conf.read().unwrap()); /// # } /// ``` mib_docs: /// See [`malloc_conf`]. }