Skip to content

Instantly share code, notes, and snippets.

@rdp
Created August 3, 2010 18:20
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 rdp/506859 to your computer and use it in GitHub Desktop.
Save rdp/506859 to your computer and use it in GitHub Desktop.
C:\dev\ruby\ruby-prof>ruby -vrtracer test_array.rb
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]
#0:ruby:0:Kernel:<: ?
#0:ruby:0:IO:>: ?
#0:ruby:0:IO:<: ?
#0:ruby:0:IO:>: ?
#0:ruby:0:IO:<: ?
#0:test_array.rb:1::-: a = [1,2,3]
#0:test_array.rb:2::-: a.each{|n|
#0:test_array.rb:2:Array:>: a.each{|n|
#0:test_array.rb:3::-: p n
#0:test_array.rb:3:Kernel:>: p n
#0:test_array.rb:3:Kernel:>: p n
#0:test_array.rb:3:Fixnum:>: p n
#0:test_array.rb:3:Fixnum:<: p n
#0:test_array.rb:3:Kernel:<: p n
1
#0:test_array.rb:3:Kernel:<: p n
#0:test_array.rb:3::-: p n
#0:test_array.rb:3:Kernel:>: p n
#0:test_array.rb:3:Kernel:>: p n
#0:test_array.rb:3:Fixnum:>: p n
#0:test_array.rb:3:Fixnum:<: p n
#0:test_array.rb:3:Kernel:<: p n
2
#0:test_array.rb:3:Kernel:<: p n
#0:test_array.rb:3::-: p n
#0:test_array.rb:3:Kernel:>: p n
#0:test_array.rb:3:Kernel:>: p n
#0:test_array.rb:3:Fixnum:>: p n
#0:test_array.rb:3:Fixnum:<: p n
#0:test_array.rb:3:Kernel:<: p n
3
#0:test_array.rb:3:Kernel:<: p n
#0:test_array.rb:2:Array:<: a.each{|n|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment