Struct jemalloc_ctl::opt::LgTcacheMax
[−]
[src]
pub struct LgTcacheMax(_);
A type providing access to the maximum size class (log base 2) to cache in the thread-specific cache (tcache).
At a minimum, all small size classes are cached, and at a maximum all large size classes are cached. The default maximum is 32 KiB (2^15).
Examples
use jemalloc_ctl::opt::LgTcacheMax; let lg_tcache_max = LgTcacheMax::new().unwrap(); println!("max cached allocation size: {}", 1 << lg_tcache_max.get().unwrap());
Methods
impl LgTcacheMax
[src]
pub fn new() -> Result<LgTcacheMax>
[src]
Returns a new LgTcacheMax
.
pub fn get(&self) -> Result<usize>
[src]
Returns the maximum cached size class.
Trait Implementations
impl Copy for LgTcacheMax
[src]
impl Clone for LgTcacheMax
[src]
fn clone(&self) -> LgTcacheMax
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more