pub struct PurgeAllReport {
pub arena_bytes: usize,
pub hole_bytes: usize,
pub theaps_swept: usize,
pub theaps_pending: usize,
pub theaps_orphaned: usize,
pub gated: bool,
pub complete: bool,
}Expand description
What a purge_all / purge_all_ex call returned to the OS and which threads it
could not reach (issue #366). Mirrors mi_purge_all_report_t.
Fields§
§arena_bytes: usizeBytes returned to the OS by the arena passes.
hole_bytes: usizeBytes returned by hole purging (every swept thread plus abandoned pages).
theaps_swept: usizeThreads claimed and swept by this call, the caller included.
theaps_pending: usizeRegistered threads not reached within wait_ms. Non-zero is the expected shape in
a default (ungated) build with running threads.
theaps_orphaned: usizePre-fork threads of vanished threads, never touched.
gated: boolWhether the allocator was built with the owner gate (the crate’s owner-gate
feature, C’s MI_OWNER_GATE=1). Configuration, not completion.
complete: booltheaps_pending == 0 && theaps_orphaned == 0.
Trait Implementations§
Source§impl Clone for PurgeAllReport
impl Clone for PurgeAllReport
impl Copy for PurgeAllReport
Source§impl Debug for PurgeAllReport
impl Debug for PurgeAllReport
Source§impl Default for PurgeAllReport
impl Default for PurgeAllReport
impl Eq for PurgeAllReport
Source§impl From<mi_purge_all_report_t> for PurgeAllReport
impl From<mi_purge_all_report_t> for PurgeAllReport
Source§fn from(r: mi_purge_all_report_t) -> PurgeAllReport
fn from(r: mi_purge_all_report_t) -> PurgeAllReport
Converts to this type from the input type.
Source§impl PartialEq for PurgeAllReport
impl PartialEq for PurgeAllReport
impl StructuralPartialEq for PurgeAllReport
Auto Trait Implementations§
impl Freeze for PurgeAllReport
impl RefUnwindSafe for PurgeAllReport
impl Send for PurgeAllReport
impl Sync for PurgeAllReport
impl Unpin for PurgeAllReport
impl UnsafeUnpin for PurgeAllReport
impl UnwindSafe for PurgeAllReport
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