- publishing free software manuals
Perl Language Reference Manual
by Larry Wall and others
Paperback (6"x9"), 724 pages
ISBN 9781906966027
RRP £29.95 ($39.95)

Sales of this book support The Perl Foundation! Get a printed copy>>>

23.1.9 The Perl Profiler

If you wish to supply an alternative debugger for Perl to run, invoke your script with a colon and a package argument given to the -d flag. Perl's alternative debuggers include the Perl profiler, Devel::DProf, which is included with the standard Perl distribution. To profile your Perl program in the file mycode.pl, just type:

$ perl -d:DProf mycode.pl

When the script terminates the profiler will dump the profile information to a file called tmon.out. A tool like dprofpp, also supplied with the standard Perl distribution, can be used to interpret the information in that profile. More powerful profilers, such as Devel::NYTProf are available from the CPAN: see "Perl Performance and Optimization Techniques" (perlperf) in Perl Tutorials for details.

ISBN 9781906966027Perl Language Reference ManualSee the print edition