Memory profile
- Output type
- pprof_memory
- Extension
- .mem.pprof
A sampled allocation profile of JavaScript in the 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 Memory pprof alongside a render by using the --pprof-memory flag.
Example
zshot -f zemu.mem.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_memory",
"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_memory","device":"DesktopLinuxChrome"}' \
-o zemu.mem.pprofReview the results with pprof:
pprof -top ./zemu.mem.pprof