Skip to main content

browser_rows

Function browser_rows 

Source
pub fn browser_rows(
    entries: &[RendererEntry],
    probes: &[PageProbe],
    before_probes: &[PageProbe],
    sample: &Sample<'_>,
    host_pid: &dyn Fn(u32) -> Option<u32>,
) -> Vec<BrowserRow>
Expand description

One row per renderer, then one per browser that has none (its page is asleep), busiest first.

host_pid maps the pid a renderer reported for itself to the pid the OS lists (the same pid except on Linux, where the sandbox’s PID namespace makes the reported one small and local).