NYTProf Profiler for Perl -
this question devel::nytprof
profiler.
the output receive profiler simple line such as:
use strict;
output:
statements: 3 time on line: 22µs calls: 2 time in sub: 12µs
so questions are:
- how 3 statements ?
- the time in sub .. represent ?
- does represent time spent converting module optree or else?
- is compile phase time or run phase time ?
thank in advance
use foo;
is equivalent executing
require foo; foo->import;
at compile time. perhaps sub called strict::import
.
update: profiling program
require strict; strict->import;
shows devel::nytprof
counts require
statement 1 sub call , import
another.
Comments
Post a Comment