in reply to Re^2: Sloooooow algo in Perl
in thread Sloooooow algo in Perl

You might want to look up Devel::Dprof instead.
For line-by-line profiling, I've found Devel::SmallProf very useful. It's used much the same way.

# wait 160 seconds or whatever...
Actually, I found with both Dprof and SmallProf that the wallclock time is significantly longer than the "profiled" time. For Dprof, I recall 5x; for SmallProf, more like 10x.

-QM
--
Quantum Mechanics: The dreams stuff is made of