Code Profiling Tools for Perl

后端 未结 3 1592
醉酒成梦
醉酒成梦 2021-01-06 02:37

I need to test Perl Application ( File operation , Data base operation..etc ) . I am looking for some profile tool for Perl code

is there any tools for Perl Code P

3条回答
  •  臣服心动
    2021-01-06 02:59

    Krish: before you post questions, you should at least check the basic documentation. One way to look for something is perldoc -q . The -q flag kicks off a keyword search through the FAQ.

    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 goes on from there.

提交回复
热议问题