pub struct AllocTuning {
pub product: String,
pub purge_delay_before_ms: i64,
pub purge_delay_after_ms: i64,
pub arena_purge_mult: i64,
pub applied: bool,
}Expand description
What tune_for_long_lived_server actually did to the running allocator —
returned (not just logged) so a caller and a test can both read it.
Fields§
§product: StringThe product name the tuning was asked for — it names the process in
log_line and picks the env override.
purge_delay_before_ms: i64purge_delay before the call (mimalloc’s own resolution).
purge_delay_after_ms: i64purge_delay after the call.
arena_purge_mult: i64arena_purge_mult after the call.
applied: boolFalse when NOTHING was written — either an override said off, or the option
row did not carry a value this crate recognises (see [MI_OPTION_PURGE_DELAY]).
Implementations§
Trait Implementations§
Source§impl Clone for AllocTuning
impl Clone for AllocTuning
Source§fn clone(&self) -> AllocTuning
fn clone(&self) -> AllocTuning
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllocTuning
impl Debug for AllocTuning
impl Eq for AllocTuning
Source§impl PartialEq for AllocTuning
impl PartialEq for AllocTuning
impl StructuralPartialEq for AllocTuning
Auto Trait Implementations§
impl Freeze for AllocTuning
impl RefUnwindSafe for AllocTuning
impl Send for AllocTuning
impl Sync for AllocTuning
impl Unpin for AllocTuning
impl UnsafeUnpin for AllocTuning
impl UnwindSafe for AllocTuning
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