Help us shape the future of Go! Take the 2026 Go Developer Survey

tabshot

command
v1.3.101 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL