pub struct Jemalloc { /* private fields */ }Expand description
The allocator; install it with #[global_allocator]:
use stoolap_jemalloc::Jemalloc;
#[global_allocator]
static GLOBAL: Jemalloc = Jemalloc::new();Implementations§
Source§impl Jemalloc
impl Jemalloc
Sourcepub const fn with_profiling(self) -> Self
pub const fn with_profiling(self) -> Self
The allocator with heap profiling on from the process’s first
allocation, as jemalloc’s prof:true,prof_active:true options
set it, without a call to prof::activate().
prof::deactivate() still stops it.
Trait Implementations§
impl Copy for Jemalloc
Source§impl GlobalAlloc for Jemalloc
impl GlobalAlloc for Jemalloc
Source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocates memory as described by the given
layout. Read moreAuto Trait Implementations§
impl Freeze for Jemalloc
impl RefUnwindSafe for Jemalloc
impl Send for Jemalloc
impl Sync for Jemalloc
impl Unpin for Jemalloc
impl UnsafeUnpin for Jemalloc
impl UnwindSafe for Jemalloc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more