1This simple script uses the line probe to count how many times a line was 2executed in a Ruby program. In this example you can see it running on the 3Code/Ruby/func_slow.rb program. 4 5# rb_lines.d 6Tracing... Hit Ctrl-C to end. 7^C 8 FILE:LINE COUNT 9 func_slow.rb:3 1 10 func_slow.rb:4 1 11 func_slow.rb:5 1 12 func_slow.rb:6 1 13 func_slow.rb:12 1 14 func_slow.rb:13 1 15 func_slow.rb:14 1 16 func_slow.rb:15 1 17 func_slow.rb:19 1 18 func_slow.rb:22 1 19 func_slow.rb:23 1 20 func_slow.rb:24 1 21 func_slow.rb:25 1 22 func_slow.rb:29 1 23 func_slow.rb:32 1 24 func_slow.rb:26 100000 25 func_slow.rb:27 100000 26 func_slow.rb:16 200000 27 func_slow.rb:17 200000 28 func_slow.rb:7 300000 29 func_slow.rb:8 300000 30 31