Join GitHub today
Include an output format for speedscope #161
Hi! This is a PR to generate output from rbspy that can be consumed by https://www.speedscope.app/ for fast interactive flamechart visualization & exploration in-browser.
To test this out, generate a profile, then convert it to a speedscope json file like so:
Then drop the resulting
This is my first ever PR in Rust, so I expect there to be a lot of changes needed before this can plausibly land.
My eventual plan is to make this integration even more seamless, so you don't even need to find the json file output and drag it into browser. Ideally you'd be able to do something like
I first asked about potential integration with rbspy in this tweet :) https://twitter.com/jlfwong/status/1015844929027780608
After using this for some visualization of multi-process data at work, I realized that we do store the process ID for every stack trace, and that I'm ignoring that information. That'll be necessary for the time ordered view in speedscope to make any sense, so I'll rework this to avoid mixing the samples from different pids together