How to profile your perl code#
How to profile your perl code in order to point out the bottelneck performances. NYTProf is one of the library allowing such profiling. Let's look how to use it in 3 steps.
Step one: install NYTProf#
cpanm install Devel::NYTProf
perldoc Devel::NYTProf
Step two: launch your script in behalf of NYTProf#
perl -d:NYTProf my_perl_script.pl
Step three: open the NYTProf output file#
nytprofhtml --open