Skip to content

Instantly share code, notes, and snippets.

@themoxman
Created May 6, 2014 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save themoxman/d9ce4a949775dd7dc250 to your computer and use it in GitHub Desktop.
Save themoxman/d9ce4a949775dd7dc250 to your computer and use it in GitHub Desktop.
# the code
def method_i_want_to_trace
method_a
method_b
end
def method_a
method_a1
method_a2
end
def method_b
method_b1
method_b2
end
def method_a1; end
def method_a2; end
def method_b1; end
def method_b2; end
# the output (trace)
method_i_want_to_trace
/ \
method_a method_b
/ \ / \
method_a1 method_a2 method_b1 method_b2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment