Skip to content

Instantly share code, notes, and snippets.

@quirkey
Created April 17, 2015 03:17
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 quirkey/ea67425dba0f64cac4e3 to your computer and use it in GitHub Desktop.
Save quirkey/ea67425dba0f64cac4e3 to your computer and use it in GitHub Desktop.
rbtrace
# pid = pid of running ruby process
tracer = RBTracer.new(pid)
output = tracer.eval("StackProf.start")
puts output #=> "<StackProf ....>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment