Skip to content

chanzuckerberg/ruby-prof-speedscope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruby-prof-speedscope

Gem Version

A ruby-prof printer compatible with the speedscope.app trace viewer.

Installation

Add to your Gemfile

gem 'ruby-prof-speedscope'

then install.

$ bundle install

Usage

# 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.

Dependencies

Contributing

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 opensource@chanzuckerberg.com.

Reporting Security Issues

If you believe you have found a security issue, please responsibly disclose by contacting us at security@chanzuckerberg.com. For additional details please see our security guide.

License

This project is licensed under MIT.

About

A ruby-prof printer for the speedscope.app trace viewer.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages