Filename | /home/lbr/.plenv/versions/5.20.2/lib/perl5/5.20.2/PerlIO.pm |
Statements | Executed 11 statements in 74µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 169µs | 6.40ms | import | PerlIO::
1 | 1 | 1 | 3µs | 3µs | CORE:subst (opcode) | PerlIO::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package PerlIO; | ||||
2 | |||||
3 | 1 | 400ns | our $VERSION = '1.09'; | ||
4 | |||||
5 | # Map layer name to package that defines it | ||||
6 | 1 | 300ns | our %alias; | ||
7 | |||||
8 | sub import | ||||
9 | # spent 6.40ms (169µs+6.23) within PerlIO::import which was called:
# once (169µs+6.23ms) by main::BEGIN@53 at line 53 of opt.pl | ||||
10 | 1 | 400ns | my $class = shift; | ||
11 | 1 | 3µs | while (@_) | ||
12 | { | ||||
13 | 1 | 200ns | my $layer = shift; | ||
14 | 1 | 600ns | if (exists $alias{$layer}) | ||
15 | { | ||||
16 | $layer = $alias{$layer} | ||||
17 | } | ||||
18 | else | ||||
19 | { | ||||
20 | 1 | 1µs | $layer = "${class}::$layer"; | ||
21 | } | ||||
22 | 2 | 64µs | 1 | 3µs | eval { require $layer =~ s{::}{/}gr . '.pm' }; # spent 3µs making 1 call to PerlIO::CORE:subst |
23 | 1 | 2µs | warn $@ if $@; | ||
24 | } | ||||
25 | } | ||||
26 | |||||
27 | sub F_UTF8 () { 0x8000 } | ||||
28 | |||||
29 | 1 | 2µs | 1; | ||
30 | __END__ | ||||
# spent 3µs within PerlIO::CORE:subst which was called:
# once (3µs+0s) by PerlIO::import at line 22 |