Akoya has asked for the wisdom of the Perl Monks concerning the following question:

Fellow Monks,

I have a daemon, written in Perl, that is apparently somewhat of a resource (cpu & mem) hog. The program uses hashes of hashes pretty heavily, if that's helpful.

I have been able to find a lot of good information on measuring and optimizing memory use (i.e, Devel::Size, Devel::Cycle, Devel::Peek, & B::TerseSize), but nothing much (except Benchmark) in the area of cpu.

What I am looking for is a list of one or more modules that may help profile my programs cpu use. I could also use any references to relevant chapters in any of the Perl books. I have browsed the index in many of the books without success.

Thanks, Akoya.

Replies are listed 'Best First'.
Re: CPU utilization of a perl program
by kyle (Abbot) on Feb 15, 2008 at 16:32 UTC
      Thank you, this is exactly what I needed. It is also a humbling reminder to the awesome amount of knowledge and wisdom available here (to anyone who remembers to first search the monastery :)