Devel::Profile 1.04 review
DownloadDevel::Profile is a Perl module to tell me why my perl program runs so slowly. SYNOPSIS perl -d:Profile program.pl les
|
|
Devel::Profile is a Perl module to tell me why my perl program runs so slowly.
SYNOPSIS
perl -d:Profile program.pl
less prof.out
The Devel::Profile package is a Perl code profiler. This will collect information on the execution time of a Perl script and of the subs in that script. This information can be used to determine which subroutines are using the most time and which subroutines are being called most often.
To profile a Perl script, run the perl interpreter with the -d debugging switch. The profiler uses the debugging hooks. So to profile script test.pl the following command should be used:
perl -d:Profile test.pl
When the script terminates (or periodicly while running, see ENVIRONMENT) the profiler will dump the profile information to a file called prof.out. This file is human-readable, no additional tool is required to read it.
Note: Statistics are kept per sub, not per line.
Requirements:
Perl
Devel::Profile 1.04 keywords