http://qs321.pair.com?node_id=879138


in reply to Subroutine execution time

Try Devel::DProf - a profiler specialised on subroutine execution times.

Step 1: Profile the code:

$ perl -d:DProf yourprog.pl

Step 2: Display results:

$ dprofpp -l tmon.out

Otherwise, use Devel::NYTProf as already suggested.

HTH,
Thomas