--pprof-memory
- CLI
- --pprof-memory
Writes a memory allocation 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-memory page.mem.pprof \
https://zshot-cli.com/example_assets/zemu/{
"url": "https://zshot-cli.com/example_assets/zemu/",
"output_type": "png",
"with_pprof_memory": 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_memory":true}' \
-D - -o page.png