Skip to main content

Module browsers

Module browsers 

Source
Expand description

muxspect browsers: which page each renderer draws, how busy it is, and what the page is doing (docs/specs/SPEC_RELEASE_BUILD_BROWSER_PAGE_DIAGNOSTIC_2026_11_13.md §3.4).

The window host knows the pages (page_probe) and which renderer serves which browser (renderer_map); the operating system knows each process’s CPU. This joins the three, with no I/O, so every case is a unit test: a renderer shared by several browsers, one that serves only a frame, a pid present in only one sample, a page that did not answer, a Linux namespace pid.

Structs§

BrowserRow
One renderer’s row (or, with no pid, a browser that has none: its page is asleep).
Others
The AgentMux processes that serve no page, for scale next to the page rows.
PageProbe
The host’s row for one browser (crates/cef/src/browser_api/page_probe.rs).
Sample
Two process snapshots secs apart.

Functions§

browser_rows
One row per renderer, then one per browser that has none (its page is asleep), busiest first.
instance_pids
The processes of this AgentMux instance: the launcher above own_pid and everything under it. AgentMux’s own executables carry the name, so another program a shell started is not climbed into.
others
The instance’s processes that serve no page (GPU, network service, window host, srv, launcher), and their CPU together, over processes measured in both samples.
parse_page_probe
The host’s page_probe answer ({ok, data: {browsers}}) as rows; none for anything else, so an older host just leaves the page facts out. A browser pane’s row is cut down again here, whatever the host sent: a person’s page never contributes a title or an animation name.