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

profile

command
v1.3.104-alpha1 Latest Latest
Warning

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

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

Documentation

Overview

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

go run ./scripts/tabshot/profile ws://127.0.0.1:9222/devtools/page/<id> <seconds>

Jump to

Keyboard shortcuts

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