Merge V8 .cpuprofile files
- Collect CPU profiles, either manually or automatically via
console.profile()
..console.profileEnd()
- Save profiles into
in
directory - Merge profiles into single file
- Load merged profile from
out
directory back into the Developer Tools
- Chrome DevTools Protocol Viewer: https://chromedevtools.github.io/devtools-protocol/1-2/Profiler#type-Profile
- Protocol sources: https://chromium.googlesource.com/v8/v8/+/master/src/inspector/js_protocol.json#1421