| Filename | /home/micha/.plenv/versions/5.38.2/lib/perl5/site_perl/5.38.2/x86_64-linux/IO.pm |
| Statements | Executed 11 statements in 320µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 6µs | 6µs | IO::BEGIN@5 |
| 1 | 1 | 1 | 3µs | 23µs | IO::BEGIN@6 |
| 1 | 1 | 1 | 3µs | 4µs | IO::BEGIN@7 |
| 1 | 1 | 1 | 2µs | 18µs | IO::BEGIN@8 |
| 0 | 0 | 0 | 0s | 0s | IO::import |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | # | ||||
| 2 | |||||
| 3 | package IO; | ||||
| 4 | |||||
| 5 | 2 | 16µs | 1 | 6µs | # spent 6µs within IO::BEGIN@5 which was called:
# once (6µs+0s) by IO::Handle::BEGIN@276 at line 5 # spent 6µs making 1 call to IO::BEGIN@5 |
| 6 | 2 | 12µs | 2 | 43µs | # spent 23µs (3+20) within IO::BEGIN@6 which was called:
# once (3µs+20µs) by IO::Handle::BEGIN@276 at line 6 # spent 23µs making 1 call to IO::BEGIN@6
# spent 20µs making 1 call to Exporter::import |
| 7 | 2 | 11µs | 2 | 6µs | # spent 4µs (3+1) within IO::BEGIN@7 which was called:
# once (3µs+1µs) by IO::Handle::BEGIN@276 at line 7 # spent 4µs making 1 call to IO::BEGIN@7
# spent 1µs making 1 call to strict::import |
| 8 | 2 | 136µs | 2 | 33µs | # spent 18µs (2+15) within IO::BEGIN@8 which was called:
# once (2µs+15µs) by IO::Handle::BEGIN@276 at line 8 # spent 18µs making 1 call to IO::BEGIN@8
# spent 15µs making 1 call to warnings::import |
| 9 | |||||
| 10 | 1 | 300ns | our $VERSION = "1.55"; | ||
| 11 | 1 | 141µs | 1 | 135µs | XSLoader::load 'IO', $VERSION; # spent 135µ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__ |