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:

  1. how 3 statements ?
  2. the time in sub .. represent ?
  3. does represent time spent converting module optree or else?
  4. 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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -