#[repr(C)]pub struct MallInfo {
pub arena: usize,
pub ordblks: usize,
pub smblks: usize,
pub hblks: usize,
pub hblkhd: usize,
pub usmblks: usize,
pub fsmblks: usize,
pub uordblks: usize,
pub fordblks: usize,
pub keepcost: usize,
}Expand description
This structure is returned by dlmallinfo and mspace_mallinfo routines.
It reports the current status of the heap.
Fields§
§arena: usizenon-mapped spaced allcated from system
ordblks: usizenumber of free chunks
smblks: usizealways 0
hblks: usizealways 0
hblkhd: usizespace in mmaped regions
usmblks: usizemaximum total allocated space
fsmblks: usizealways 0
uordblks: usizetotal allocated space
fordblks: usizetotal free space
keepcost: usizereleaseable (via malloc_trim space)
Auto Trait Implementations§
impl Freeze for MallInfo
impl RefUnwindSafe for MallInfo
impl Send for MallInfo
impl Sync for MallInfo
impl Unpin for MallInfo
impl UnwindSafe for MallInfo
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