CPU profile
- Output type
- pprof_cpu
- Extension
- .cpu.pprof
A CPU sampling profile of JavaScript in pprof
protobuf. The results can be read by pprof and speedscope.
Web workers, service workers, and cross-origin iframes are excluded.
You can request a CPU pprof alongside a render by using the --pprof-cpu flag.
Example
zshot -f zemu.cpu.pprof \
--device DesktopLinuxChrome \
https://zshot-cli.com/example_assets/zemu/index.html{
"url": "https://zshot-cli.com/example_assets/zemu/index.html",
"output_type": "pprof_cpu",
"device": "DesktopLinuxChrome"
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/zemu/index.html","output_type":"pprof_cpu","device":"DesktopLinuxChrome"}' \
-o zemu.cpu.pprofReview the results with pprof:
pprof -top ./zemu.cpu.pprof