Article
Profiling Ruby Programs
The Ruby Interpreter includes a profiling tool which is invoked with the -rprofile option on the command line. Below is an example running the Ruby Fibonacci program ( fib.rb) included in Ruby documentation samples. The list of functions is sorted from most to least time spent exclusively in the function ( self seconds). The first column provides the percentage of self seconds for each function. The cumulative seconds indicates the amount of time spent in that function and the functions...