Map Ruby Program Call Hierarchy


#1

Hello all,

I’m wondering if a Ruby library exists that makes it possible to map the
call hierarchy of a Ruby program. For example, given a command-line
program with different options, I’d like to be able to run the program
multiple times, each time with different arguments, and map the ‘route’
the code takes. I’d like to be able to see what methods of what classes
are called as the program executed. Does anyone know if anything like
this exists?


Thanks!
Bryan


#2

On May 5, 2009, at 21:57 , Bryan R. wrote:

I’m wondering if a Ruby library exists that makes it possible to map
the
call hierarchy of a Ruby program. For example, given a command-line
program with different options, I’d like to be able to run the program
multiple times, each time with different arguments, and map the
‘route’
the code takes. I’d like to be able to see what methods of what
classes
are called as the program executed. Does anyone know if anything like
this exists?

look at tracer.rb