A ruby-prof printer compatible with the speedscope.app trace viewer.
Add to your Gemfile
gem 'ruby-prof-speedscope'
then install.
$ bundle install
# Collect the profile.
RubyProf.start
...
results = RubyProf.stop
# Save the printer output.
File.open("trace.rubyprof") do |f|
RubyProf::SpeedscopePrinter.new(results).print(f)
end
# Go to https://speedscope.app
# Open the trace there.
- Profiler:
ruby-prof
(https://https://ruby-prof.github.io/) - Trace Viewer: https://speedscope.app (https://github.com/jlfwong/speedscope/)
Contributions and ideas are welcome! Please don't hesitate to open an issue or send a pull request to improve the functionality of this gem.
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to [email protected].
If you believe you have found a security issue, please responsibly disclose by contacting us at [email protected]. For additional details please see our security guide.
This project is licensed under MIT.