Run the desired command under the profiler:
analizo=/path/to/analizo
perl -d:DProf -I$analizo/lib $analizo/lib/Analizo/Command/COMMANDProcess the profiler output (this has to be run from the same directory where you run the profiler):
dprofppRun the desired command under the profiler:
COMMAND=metrics SOURCE=t/samples/hello_world/cpp/ perl profile.plProcess the profiler output (this has to be run from the same directory where you run the profiler) in HTML format:
nytprofhtml --openYou can run profiler running analizo over any source-code you want by passing via command line argument or $SOURCE variable, eg:
SOURCE=t/samples/hello_world/cpp/ perl profile.plperl profile.pl t/samples/hello_world/cpp/- Profiling Perl, by Simon Cozens
- Devel::NYTProf - Profiling Perl code, by Leo Lapworth