Skip to content

Instantly share code, notes, and snippets.

@brainopia
Created February 19, 2012 20:15
Show Gist options
  • Save brainopia/1865549 to your computer and use it in GitHub Desktop.
Save brainopia/1865549 to your computer and use it in GitHub Desktop.
# Get backtrace for each thread
# ruby 1.9
Thread.list.map(&:backtrace)
# ruby enterprise edition
# http://www.rubyenterpriseedition.com/documentation.html#_obtaining_the_backtrace_of_all_threads
require 'thread'
caller_for_all_threads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment