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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To record and save a profile with ruby-prof, do something like the following:
# Collect the profileresults=RubyProf.profiledo# ... some slow stuffend# Save the resultsFile.open("/tmp/profile.speedscope.json")do |f|
RubyProf::SpeedscopePrinter.new(results).print(f)end
Then drop the resulting profile.speedscope.json into https://www.speedscope.app/
To view it offline, you'll need to install speedscope via npm: