--pprof-cpu
- CLI
- --pprof-cpu
- REST
- with_pprof_cpu
Writes a CPU sampling profile as gzip-compressed pprof alongside the render. On the server, the profile is returned as a Link response header.
Scope
Sampling covers the main frame and same-origin iframes. Workers and cross-origin iframes run in their own V8 isolates and are excluded.
Example
zshot -f page.png \
--pprof-cpu page.cpu.pprof \
https://zshot-cli.com/example_assets/zemu/{
"url": "https://zshot-cli.com/example_assets/zemu/",
"output_type": "png",
"with_pprof_cpu": true
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/zemu/","output_type":"png","with_pprof_cpu":true}' \
-D - -o page.png