pub struct FreeSpaceSampler { /* private fields */ }Expand description
Background free-space sampler for one determinism run’s build.
Spawned just before a run’s build subprocess starts and
stopped when it returns. While alive, a thread polls
available_bytes every interval and records the MINIMUM free space
it observes into a shared atomic. The minimum, subtracted from the
free space measured before the run, is the run’s measured PEAK
consumption — the mid-dmg high-water mark a between-runs net delta
cannot see.
If the probe is unavailable (available_bytes returns None), the
sampler records nothing and stop yields None; the
guard then has no peak for that run and falls back to the floor, never
a manufactured value.
Implementations§
Trait Implementations§
Source§impl Drop for FreeSpaceSampler
impl Drop for FreeSpaceSampler
Auto Trait Implementations§
impl !RefUnwindSafe for FreeSpaceSampler
impl !UnwindSafe for FreeSpaceSampler
impl Freeze for FreeSpaceSampler
impl Send for FreeSpaceSampler
impl Sync for FreeSpaceSampler
impl Unpin for FreeSpaceSampler
impl UnsafeUnpin for FreeSpaceSampler
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