sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
RubyProf::CallInfo#recursive
part of this class is defined in C code. it provides the following attributes pertaining to tree structure: depth: tree level (0 == root) parent: parent call info (can be nil) children: array of call info children (can be empty) target: method info (containing an array of call infos)
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/call_info.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-RubyProf--CallInfo-recursive-for-pr
# Commit to gitgit add app/server/ruby/vendor/ruby-prof-0.15.8/lib/ruby-prof/call_info.rbgit commit -m "better docs for RubyProf::CallInfo#recursive"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-RubyProf--CallInfo-recursive-for-pr
hub pull-request
# Celebrate!