Filename | /home/hejohns/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/IO.pm |
Statements | Executed 11 statements in 313µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 5µs | 5µs | BEGIN@5 | IO::
1 | 1 | 1 | 4µs | 6µs | BEGIN@7 | IO::
1 | 1 | 1 | 3µs | 20µs | BEGIN@8 | IO::
1 | 1 | 1 | 3µs | 17µs | BEGIN@6 | IO::
0 | 0 | 0 | 0s | 0s | import | IO::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # | ||||
2 | |||||
3 | package IO; | ||||
4 | |||||
5 | 2 | 13µs | 1 | 5µs | # spent 5µs within IO::BEGIN@5 which was called:
# once (5µs+0s) by IO::Handle::BEGIN@268 at line 5 # spent 5µs making 1 call to IO::BEGIN@5 |
6 | 2 | 12µs | 2 | 31µs | # spent 17µs (3+14) within IO::BEGIN@6 which was called:
# once (3µs+14µs) by IO::Handle::BEGIN@268 at line 6 # spent 17µs making 1 call to IO::BEGIN@6
# spent 14µs making 1 call to Exporter::import |
7 | 2 | 14µs | 2 | 7µs | # spent 6µs (4+1) within IO::BEGIN@7 which was called:
# once (4µs+1µs) by IO::Handle::BEGIN@268 at line 7 # spent 6µs making 1 call to IO::BEGIN@7
# spent 1µs making 1 call to strict::import |
8 | 2 | 126µs | 2 | 37µs | # spent 20µs (3+17) within IO::BEGIN@8 which was called:
# once (3µs+17µs) by IO::Handle::BEGIN@268 at line 8 # spent 20µs making 1 call to IO::BEGIN@8
# spent 17µs making 1 call to warnings::import |
9 | |||||
10 | 1 | 200ns | our $VERSION = "1.50"; | ||
11 | 1 | 145µs | 1 | 141µs | XSLoader::load 'IO', $VERSION; # spent 141µs making 1 call to XSLoader::load |
12 | |||||
13 | sub import { | ||||
14 | shift; | ||||
15 | |||||
16 | warnings::warnif('deprecated', qq{Parameterless "use IO" deprecated}) | ||||
17 | if @_ == 0 ; | ||||
18 | |||||
19 | my @l = @_ ? @_ : qw(Handle Seekable File Pipe Socket Dir); | ||||
20 | |||||
21 | local @INC = @INC; | ||||
22 | pop @INC if $INC[-1] eq '.'; | ||||
23 | eval join("", map { "require IO::" . (/(\w+)/)[0] . ";\n" } @l) | ||||
24 | or croak $@; | ||||
25 | } | ||||
26 | |||||
27 | 1 | 3µs | 1; | ||
28 | |||||
29 | __END__ |