Importing from rbspy (ruby)

Jamie Wong edited this page Aug 21, 2018 · 2 revisions

rbspy is a ruby profiler that lets you profile Ruby processes that are already running.

rbspy has an explicit output format for speedscope (See rbspy/rbspy#161).

To record a profile on an already-running process with rbspy, run:

sudo rbspy record --pid $PID --format speedscope --file profile.speedscope.json

Then drop the resulting profile.speedscope.json into https://www.speedscope.app/

To view it offline, you'll need to install speedscope via npm:

npm install -g speedscope

Then you should be able to open it like so:

speedscope /path/to/profile.speedscope.json
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.