[][src]Struct tikv_jemalloc_ctl::opt::lg_tcache_max

pub struct lg_tcache_max;

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 tikv_jemalloc_ctl::opt;
let lg_tcache_max = opt::lg_tcache_max::read().unwrap();
println!("max cached allocation size: {}", 1 << lg_tcache_max);

Implementations

impl lg_tcache_max[src]

pub fn mib() -> Result<lg_tcache_max_mib>[src]

Returns Management Information Base (MIB)

This value can be used to access the key without doing string lookup.

pub fn name() -> &'static Name[src]

Key [::keys::Name].

impl lg_tcache_max[src]

pub fn read() -> Result<size_t>[src]

Reads value using string API.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.