pub fn read_live(
dir: &Path,
now_ms: u64,
pid_alive: impl Fn(u32, u64) -> bool,
) -> Vec<InstanceRecord>Expand description
The live instances in dir, sorted by channel. pid_alive(pid, updated_at) says whether the
process that wrote a record at that time still runs. A record whose process is gone is deleted;
one that is merely stale (a live process that stopped beating) is skipped and left.