Documentation
¶
Overview ¶
Command tabshot captures a PNG screenshot of an existing CDP page target.
go run ./scripts/tabshot ws://127.0.0.1:9222/devtools/page/<id> out.png
Directories
¶
| Path | Synopsis |
|---|---|
|
Command evallat times CDP Runtime.evaluate round-trips on one open socket, isolating the evaluate from process startup and dial cost.
|
Command evallat times CDP Runtime.evaluate round-trips on one open socket, isolating the evaluate from process startup and dial cost. |
|
Command hardreload reloads a CDP page target bypassing the HTTP cache — what a stale cached bundle needs after the server was rebuilt.
|
Command hardreload reloads a CDP page target bypassing the HTTP cache — what a stale cached bundle needs after the server was rebuilt. |
|
the JSON result — direct Runtime.evaluate, no serve-harness needed.
|
the JSON result — direct Runtime.evaluate, no serve-harness needed. |
|
Command nav navigates a CDP page target to a URL — the missing half of hardreload for driving a fresh tab (PUT /json/new?url= no longer navigates in current Chromium).
|
Command nav navigates a CDP page target to a URL — the missing half of hardreload for driving a fresh tab (PUT /json/new?url= no longer navigates in current Chromium). |
|
Command profile samples a CDP page target's JS CPU profile for N seconds and prints the hottest functions by self time — the diagnostic for "the wasm desk tab pegs a core": a spin loop names itself at the top of this list, where a screenshot or eval cannot (evals queue behind the spin; the profiler runs in the inspector and samples through it).
|
Command profile samples a CDP page target's JS CPU profile for N seconds and prints the hottest functions by self time — the diagnostic for "the wasm desk tab pegs a core": a spin loop names itself at the top of this list, where a screenshot or eval cannot (evals queue behind the spin; the profiler runs in the inspector and samples through it). |
Click to show internal directories.
Click to hide internal directories.