in reply to Re: Finding bottlenecks in the code
in thread Finding bottlenecks in the code

Well, I installed Devel::Cover and got, really nothing.
perl -MDevel::Cover index.cgi Devel::Cover 0.53: Collecting coverage data for branch, condition, pod +, statement, subroutine and time. Selecting packages matching: Ignoring packages matching: /Devel/Cover[./] Ignoring packages in: . /Library/Perl /Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /System/Library/Perl/5.8.1/darwin-thread-multi-2level .. bunch of output from my index.cgi .. bus error

Then, an empty coverage.html

--

when small people start casting long shadows, it is time to go to bed

Replies are listed 'Best First'.
Re^3: Finding bottlenecks in the code
by davidrw (Prior) on Jun 12, 2005 at 16:59 UTC
    You have to explicitly tell Devel::Cover what files to cover. See the docs for specifics, but something along the lines of (note it sets the output to go into /tmp/covertest/):
    /usr/bin/perl -MDevel::Cover=-db,/tmp/covertest,-silent,0,-ignore,.,-s +elect,/home/you/your_pm index.cgi