×

Welcome to TagMyCode

Please login or create account to add a snippet.
1
0
 
0
Language: Ruby
Posted by: petecocoon
Added: Jul 19, 2011 10:12 AM
Views: 295
  1. my_cool_thread = Thread.new do
  2.   #some cool stuff here
  3. end
  4.  
  5. my_cool_thread.set_trace_func proc do |event, file, line, id, binding, classname|
  6.      #print information about each thread function or system call
  7.      printf "%8s %s:%-2d %10s %8s\n", event, file, line, id, classname
  8. end