Code Profiling Tools for Perl

I need to test a Perl application (file operation, working with a database ..etc). I am looking for some profile tool for Perl code

Are there any tools for Perl Code Profling such as gprof on Linux

+5
source share
3 answers

As with debugging, profiling is the task that is best performed by the perl interpreter itself.

This website will give you an overview of the use of the argument to the -d:DProfinterpreter and how to use it.

+5
source

Devel:: DProf , , .

perl Devel::NYTProf.

Google, , , . .

+16

Krish: Before posting questions, you should at least check the basic documentation. One way to find something is perldoc -q <something>. The flag -qstarts a keyword search through frequently asked questions.

So for example perldoc -q profile:

Found in /usr/local/lib/perl5/5.10.0/pod/perlfaq3.pod
   How do I profile my Perl programs?
       You should get the Devel::DProf module from the standard distribution
       (or separately on CPAN) and also use Benchmark.pm from the standard
       distribution.  The Benchmark module lets you time specific portions of
       your code, while Devel::DProf gives detailed breakdowns of where your
       code spends its time.

And it continues from there.

+7
source

All Articles