pub struct SamplingProfile {
pub save_every: Duration,
pub classify_every: Duration,
pub narrate_every: Duration,
}Expand description
Cadence policy: answers “how often”, owns no state, no I/O, no ticker.
The loops tick on SamplingProfile::tick and gate each layer on its
own due-check — one scheduler, three rates, zero alternate capture
paths.
Fields§
§save_every: DurationDisk PNG cadence (zero = off).
classify_every: DurationIn-memory match cadence (zero = off).
narrate_every: DurationStatus-line narration cadence.
Implementations§
Source§impl SamplingProfile
impl SamplingProfile
Sourcepub const TCG_CLASSIFY_SECS: u64 = 30
pub const TCG_CLASSIFY_SECS: u64 = 30
TCG classify default: pegged software emulation earns 3x spacing.
Auto Trait Implementations§
impl Freeze for SamplingProfile
impl RefUnwindSafe for SamplingProfile
impl Send for SamplingProfile
impl Sync for SamplingProfile
impl Unpin for SamplingProfile
impl UnsafeUnpin for SamplingProfile
impl UnwindSafe for SamplingProfile
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