Struct jemalloc_ctl::opt::narenas
source · [−]pub struct narenas;Expand description
Maximum number of arenas to use for automatic multiplexing of threads and arenas.
The default is four times the number of CPUs, or one if there is a single CPU.
Examples
use jemalloc_ctl::opt;
let narenas = opt::narenas::read().unwrap();
println!("number of arenas: {}", narenas);Implementations
sourceimpl narenas
impl narenas
sourcepub fn mib() -> Result<narenas_mib>
pub fn mib() -> Result<narenas_mib>
Returns Management Information Base (MIB)
This value can be used to access the key without doing string lookup.
sourcepub fn name() -> &'static Name
pub fn name() -> &'static Name
Key crate::keys::Name.
Auto Trait Implementations
impl RefUnwindSafe for narenas
impl Send for narenas
impl Sync for narenas
impl Unpin for narenas
impl UnwindSafe for narenas
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more