in reply to Is there a tool to measure Perl code performance?
The Devel::DProf module can profile CPU usage. I'm not sure what you could use to track memory usage (other than say 'top').