Skip to main content

Module muxspect_browsers

Module muxspect_browsers 

Source
Expand description

GET /api/v1/muxspect/browsers[?sample=SECS][&detail=1]: which page each renderer of this instance draws, how busy it is, and what the page is doing (docs/specs/SPEC_RELEASE_BUILD_BROWSER_PAGE_DIAGNOSTIC_2026_11_13.md §3).

The window host answers what only it knows (renderer_map and page_probe); this samples the operating system’s process table twice, sample seconds apart, and joins the three (backend::tower::browsers, pure and unit-tested). It reads and stores nothing, and a page that is a person’s shows only its origin and three facts: no title, no path, no animation names. A container agent reaches it like muxspect layout and sees nothing about a pane that adds to what that already lists, except that origin and those facts.

Structs§

BrowsersQuery

Constants§

DEFAULT_SAMPLE_SECS 🔒
How long the sample lasts when the caller does not say: the unit the CPU runbook already uses.
HOST_WAIT 🔒
The host asks every page (1.5 s each, in parallel) before it answers.
MAX_SAMPLE_SECS 🔒
MIN_SAMPLE_SECS 🔒
PATH 🔒
The route’s path: muxspect --channel <name> browsers forwards it, and this read outlasts the forward layer’s usual 5 s (it sleeps the whole sample and asks the host twice).

Functions§

ask_host 🔒
One call to the window host; None when it cannot be asked (an older host has no page_probe).
handle_muxspect_browsers
longest_answer 🔒
The most a request for query can take: its sample, four host calls (the renderer map and the page facts, at each end of the sample, each bounded by HOST_WAIT), and a margin.
processes 🔒
read_host 🔒
The host’s renderer map and page facts at one moment.
sample_secs 🔒
The sample length asked for, kept within bounds (a NaN or an absent value is the default).
wants_detail 🔒