| Filename | /Users/ether/perl5/perlbrew/perls/36.0/lib/5.36.0/PerlIO.pm |
| Statements | Executed 10 statements in 553µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 659µs | 12.4ms | PerlIO::import |
| 1 | 1 | 1 | 3µs | 3µs | PerlIO::CORE:subst (opcode) |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package PerlIO; | ||||
| 2 | |||||
| 3 | 1 | 1µs | our $VERSION = '1.12'; | ||
| 4 | |||||
| 5 | # Map layer name to package that defines it | ||||
| 6 | our %alias; | ||||
| 7 | |||||
| 8 | sub 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 | ||||
| 10 | 1 | 1µs | my $class = shift; | ||
| 11 | 1 | 4µs | while (@_) | ||
| 12 | { | ||||
| 13 | 1 | 0s | my $layer = shift; | ||
| 14 | 1 | 0s | if (exists $alias{$layer}) | ||
| 15 | { | ||||
| 16 | $layer = $alias{$layer} | ||||
| 17 | } | ||||
| 18 | else | ||||
| 19 | { | ||||
| 20 | 1 | 1µs | $layer = "${class}::$layer"; | ||
| 21 | } | ||||
| 22 | 2 | 542µs | 1 | 3µs | eval { require $layer =~ s{::}{/}gr . '.pm' }; # spent 3µs making 1 call to PerlIO::CORE:subst |
| 23 | 1 | 1µs | warn $@ if $@; | ||
| 24 | } | ||||
| 25 | } | ||||
| 26 | |||||
| 27 | sub F_UTF8 () { 0x8000 } | ||||
| 28 | |||||
| 29 | 1 | 3µs | 1; | ||
| 30 | __END__ | ||||
# spent 3µs within PerlIO::CORE:subst which was called:
# once (3µs+0s) by PerlIO::import at line 22 |