sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

RubyProf::CallTreePrinter#print

Specify print options.

options - Hash table
  :min_percent - Number 0 to 100 that specifes the minimum
                 %self (the methods self time divided by the
                 overall total time) that a method must take
                 for it to be printed out in the report.
                 Default value is 0.

  :print_file  - True or false. Specifies if a method's source
                 file should be printed.  Default value if false.

Source | Google | Stack overflow

Edit

git clone [email protected]:sonic-pi-net/sonic-pi.git

cd sonic-pi

open app/server/ruby/vendor/ruby-prof-0.15.8/lib/ruby-prof/printers/call_tree_printer.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-RubyProf--CallTreePrinter-print-for-pr


# Commit to git

git add app/server/ruby/vendor/ruby-prof-0.15.8/lib/ruby-prof/printers/call_tree_printer.rbgit commit -m "better docs for RubyProf::CallTreePrinter#print"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-RubyProf--CallTreePrinter-print-for-pr

hub pull-request


# Celebrate!