Struct rpmalloc::RpMalloc [−][src]
pub struct RpMalloc;
Expand description
rpmalloc global allocator wrapper
Implementations
impl RpMalloc
[src]
impl RpMalloc
[src]pub fn global_stats() -> rpmalloc_global_statistics_t
[src]
pub fn global_stats() -> rpmalloc_global_statistics_t
[src]Retrieve global allocation stats.
Some of the fields in these will only be used if the statistics
feature is enabled
pub fn thread_stats() -> rpmalloc_thread_statistics_t
[src]
pub fn thread_stats() -> rpmalloc_thread_statistics_t
[src]Retrieve allocation stats for the current thread.
Some of the fields in these will only be used if the statistics
feature is enabled
Trait Implementations
impl GlobalAlloc for RpMalloc
[src]
impl GlobalAlloc for RpMalloc
[src]unsafe fn alloc(&self, layout: Layout) -> *mut u8
[src]
unsafe fn alloc(&self, layout: Layout) -> *mut u8
[src]Allocate memory as described by the given layout
. Read more
unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
[src]
unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
[src]Behaves like alloc
, but also ensures that the contents
are set to zero before being returned. Read more