Skip to main content

Module orphan_reaper

Module orphan_reaper 

Source

ConstantsΒ§

FIRST_SWEEP_DELAY πŸ”’
First sweep waits for the frontend to load and push its layouts.
MIN_ORPHAN_AGE πŸ”’
How long a block must stay unplaced before it is reaped.
SWEEP_INTERVAL πŸ”’

StaticsΒ§

LAST_CANDIDATES πŸ”’
Diagnostic-only counters updated at the end of every sweep() β€” for the periodic mem_attribution log (sysinfo.rs) to correlate commit/handle growth against reaper activity. A reaper_candidates/reaper_first_seen that climbs sweep over sweep without a matching rise in reaper_reaped_cumulative would mean the reaper keeps finding (but not managing to close) the same growing set of blocks β€” worth seeing directly rather than inferred from commit numbers alone.
LAST_FIRST_SEEN_LEN πŸ”’
REAPED_CUMULATIVE πŸ”’

FunctionsΒ§

collect_members πŸ”’
install
Start the periodic sweep. Called once from main after AppState exists.
pending_placement_blocks πŸ”’
Blocks named by a queued, not-yet-applied placement action (pendingbackendactions) in this tab’s layout row.
sweep πŸ”’
One sweep. first_seen carries each candidate’s first sighting across sweeps; a block that got placed (or deleted) in between drops out of it. Returns the block ids it closed.
unplaced_agent_blocks πŸ”’
Agent blocks that are in their tab’s block_ids but in no leaf of the tab’s layout, minus everything the module doc lists as never reaped.