Filename | /usr/share/perl5/PerlIO.pm |
Statements | Executed 10 statements in 29µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 199µs | 411µs | import | PerlIO::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package PerlIO; | ||||
2 | |||||
3 | 1 | 400ns | our $VERSION = '1.07'; | ||
4 | |||||
5 | # Map layer name to package that defines it | ||||
6 | 1 | 300ns | our %alias; | ||
7 | |||||
8 | sub import | ||||
9 | # spent 411µs (199+212) within PerlIO::import which was called:
# once (199µs+212µs) by Foswiki::Templates::BEGIN@589 at line 589 of /var/www/foswikidev/core/lib/Foswiki/Templates.pm | ||||
10 | 1 | 500ns | my $class = shift; | ||
11 | 1 | 4µ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 | 900ns | $layer = "${class}::$layer"; | ||
21 | } | ||||
22 | 1 | 18µs | eval "require $layer"; # spent 65µs executing statements in string eval | ||
23 | 1 | 800ns | warn $@ if $@; | ||
24 | } | ||||
25 | } | ||||
26 | |||||
27 | sub F_UTF8 () { 0x8000 } | ||||
28 | |||||
29 | 1 | 3µs | 1; | ||
30 | __END__ |