]> git.proxmox.com Git - rustc.git/blob - vendor/jemalloc-ctl/src/config.rs
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / vendor / jemalloc-ctl / src / config.rs
1 //! `jemalloc`'s build-time configuration.
2
3 option! {
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 /// # extern crate jemallocator;
16 /// # extern crate jemalloc_ctl;
17 /// #
18 /// # #[global_allocator]
19 /// # static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
20 /// #
21 /// # fn main() {
22 /// use jemalloc_ctl::config;
23 /// let malloc_conf = config::malloc_conf::mib().unwrap();
24 /// println!("default malloc conf: {}", malloc_conf.read().unwrap());
25 /// # }
26 /// ```
27 mib_docs: /// See [`malloc_conf`].
28 }