This question is about Devel::NYTProf
profiler.
The output that I receive from the profiler for a simple line such as:
use strict;
OUTPUT:
statements: 3
Time on Line: 22µs
Calls: 2
Time in Sub: 12µs
So my questions are:
Thank you in advance
use Foo;
is equivalent to executing
require Foo;
Foo->import;
at compile time. So perhaps the sub that was called is strict::import
.
Update: profiling the program
require strict;
strict->import;
shows that Devel::NYTProf
counts the require
statement as one sub call and import
as another.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With