nytprofhtml - Devel::NYTProf::Reader HTML format implementation
$ nytprofhtml [-h] [-d] [-o <output directory>] [-f <input file>] perl -d:NYTProf some_perl_app.pl nytprofhtml Generating HTML Output...
A bit of history and a shameless plug...
NYTProf stands for 'New York Times Profiler'. Indeed, this module was developed by The New York Times Co. to help our developers quickly identify bottlenecks in large Perl applications. The Times loves Perl and we hope the community will benefit from our work as much as we have from theirs.
Please visit http://open.nytimes.com, our open source blog to see what we are up to, http://code.nytimes.com to see some of our open projects and then check out htt://nytimes.com for the latest news!
nytprofhtml is a script that utilizes Devel::NYTProf::Reader to create colorful HTMl formatted reports from Devel::NYTProf output.
nytprofhtml
The reports include dynamic runtime analysis wherein each line and each file is analyzed based on the preformance of the other lines and files. As a result, you can quickly find the slowest module and the slowest line in a module. Slowness is measured in three ways: total calls, total time and average time per call. Analysis is based on absolute deviations from the median.
That might sound complicated, but in reality you can just run the command and enjoy your report!
Note: You'll need to run your app through Devel::NYTProf debugger first
These are the command line options understood by nytprofhtml
Specifies the location of the input file. Default: nytprof.out
Where to place the generated report. Default: ./profiler/
Purge any existing database located at whatever -o (above) is set to
Print the help message
Devel::NYTProf Devel::NYTProf::Reader nytprofcsv
Adam Kaplan, akaplan at nytimes dotcom
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install Devel::NYTProf, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::NYTProf
CPAN shell
perl -MCPAN -e shell install Devel::NYTProf
For more information on module installation, please visit the detailed CPAN module installation guide.