in reply to Benchmarking with Memory Profiling

You could look at the output of perl -Dm (see perlrun). It allegedly gives memory allocation data. You have to compile Perl with debugging enabled first.

Or you could just use the tools on your operating system for watching process memory usage.

You can also look into Devel::DProf and Devel::SmallProf to get counts of the number of times subroutines or lines are getting executed.