--trace
- CLI
- --trace
- REST
- with_trace
Writes a performance trace alongside the render, gzip-compressed unless the path ends .trace.json. On the server, the trace is returned as a Link response header.
Scope
The trace covers the page’s renderer process, worker threads included. Cross-origin iframes run in their own process and are excluded.
Example
zshot -f page.png \
--trace page.trace.json.gz \
https://zshot-cli.com/example_assets/zemu/{
"url": "https://zshot-cli.com/example_assets/zemu/",
"output_type": "png",
"with_trace": 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_trace":true}' \
-D - -o page.png