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§
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> browsersforwards 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;
Nonewhen it cannot be asked (an older host has nopage_probe). - handle_
muxspect_ browsers - longest_
answer 🔒 - The most a request for
querycan take: its sample, four host calls (the renderer map and the page facts, at each end of the sample, each bounded byHOST_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 🔒