Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Profiling analizo

Run the desired command under the profiler:

analizo=/path/to/analizo
perl -d:DProf -I$analizo/lib $analizo/lib/Analizo/Command/COMMAND

Process the profiler output (this has to be run from the same directory where you run the profiler):

dprofpp

Using Devel::NYTProf

Run the desired command under the profiler:

COMMAND=metrics SOURCE=t/samples/hello_world/cpp/ perl profile.pl

Process the profiler output (this has to be run from the same directory where you run the profiler) in HTML format:

nytprofhtml --open

You 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.pl
perl profile.pl t/samples/hello_world/cpp/