← Index
NYTProf Performance Profile   « line view »
For ../prof.pl
  Run on Thu Dec 15 15:23:56 2022
Reported on Thu Dec 15 15:27:04 2022

Filename/Users/ether/perl5/perlbrew/perls/36.0/lib/5.36.0/PerlIO.pm
StatementsExecuted 10 statements in 553µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111659µs12.4msPerlIO::::importPerlIO::import
1113µs3µsPerlIO::::CORE:substPerlIO::CORE:subst (opcode)
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package PerlIO;
2
311µsour $VERSION = '1.12';
4
5# Map layer name to package that defines it
6our %alias;
7
8sub import
9
# spent 12.4ms (659µs+11.7) within PerlIO::import which was called: # once (659µs+11.7ms) by YAML::PP::Reader::File::BEGIN@56 at line 56 of YAML/PP/Reader.pm
{
1011µs my $class = shift;
1114µs while (@_)
12 {
1310s my $layer = shift;
1410s if (exists $alias{$layer})
15 {
16 $layer = $alias{$layer}
17 }
18 else
19 {
2011µs $layer = "${class}::$layer";
21 }
222542µs13µs eval { require $layer =~ s{::}{/}gr . '.pm' };
# spent 3µs making 1 call to PerlIO::CORE:subst
2311µs warn $@ if $@;
24 }
25}
26
27sub F_UTF8 () { 0x8000 }
28
2913µs1;
30__END__
 
# spent 3µs within PerlIO::CORE:subst which was called: # once (3µs+0s) by PerlIO::import at line 22
sub PerlIO::CORE:subst; # opcode