in reply to Clocking Portion of Your Perl Code

You should take a look here. Though it only measures at subroutine level, it's still useful.