tikv_jemalloc_ctl/
config.rs

1//! `jemalloc`'s build-time configuration.
2
3option! {
4    malloc_conf[ str: b"config.malloc_conf\0", str: 2 ] => &'static str |
5    ops: r |
6    docs:
7    /// Default run-time options specified during `jemalloc`'s build configuration.
8    ///
9    /// The string will be empty unless `--with-malloc-conf` was specified
10    /// during build configuration.
11    ///
12    /// # Examples
13    ///
14    /// ```
15    /// # #[global_allocator]
16    /// # static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
17    /// #
18    /// # fn main() {
19    /// use tikv_jemalloc_ctl::config;
20    /// let malloc_conf = config::malloc_conf::mib().unwrap();
21    /// println!("default malloc conf: {}", malloc_conf.read().unwrap());
22    /// # }
23    /// ```
24    mib_docs: /// See [`malloc_conf`].
25}