pub fn sessionize(events: &mut [BrowserEvent], cfg: SessionConfig)Expand description
Group visits into inferred browsing sessions by idle gap.
Walking the events in time order, a new session begins whenever the gap since
the previous visit exceeds cfg.idle_gap_ns, or the browser-recorded
session attr changes. Each event gains a session_id attr (0-based,
assigned in time order). The slice is not reordered.
Sessions are inferred from the idle-gap heuristic, not recorded by the browser: report them as “sessions inferred at an N-minute idle gap”.