I play with ruby-prof. Profiling those simple-few-dozens-line scripts
seems clear, but when I try to profile
rake --tasks, as follows
“–file=ruby_prof.rake.html” “–min_percent=1.00” “–”
I get reported execution total time from 84 to 102 seconds, while it
actually took not more than 25 seconds.
I set environment wariable RUBY_PROF_CPU_FREQUENCY to various values
scaling them 10 times, but it seemes had no influence on execution total
time. Also I tried same with --mode key values cpu, wall.
How can I get more realistic totals?
win xp sp3, core2duo T2300 @1.66GHz
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]