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

Is there a tool to measure Perl code performance, which basically profiles me the details on which part of code consumes more CPU/memory?
Thanks,
-sureshr
  • Comment on Is there a tool to measure Perl code performance?

Replies are listed 'Best First'.
Re: Is there a tool to measure Perl code performance?
by broquaint (Abbot) on Apr 28, 2003 at 10:43 UTC
Re: Is there a tool to measure Perl code performance?
by crenz (Priest) on Apr 28, 2003 at 10:35 UTC
Re: Is there a tool to measure Perl code performance?
by grantm (Parson) on Apr 28, 2003 at 10:36 UTC

    The Devel::DProf module can profile CPU usage. I'm not sure what you could use to track memory usage (other than say 'top').

Re: Is there a tool to measure Perl code performance?
by LordWeber (Monk) on Apr 28, 2003 at 13:29 UTC
    Re: Is there a tool to measure Perl code performance?
    by swngnmonk (Pilgrim) on Apr 28, 2003 at 16:46 UTC
      Another option is Devel::Profiler, which is compatible with Devel::DProf, but will work in a CGI/mod_perl environment.
    Re: Is there a tool to measure Perl code performance?
    by adrianh (Chancellor) on Apr 28, 2003 at 18:59 UTC

      On the memory checking front GTop can be useful. You might also find the performance tuning section of the mod_perl guide useful reading. It's not all mod_perl specific.