| Filename | /home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/5.10.1/x86_64-linux/IO.pm |
| Statements | Executed 15 statements in 1.54ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 50µs | 50µs | IO::BEGIN@5 |
| 1 | 1 | 1 | 39µs | 247µs | IO::BEGIN@6 |
| 1 | 1 | 1 | 38µs | 102µs | IO::BEGIN@8 |
| 1 | 1 | 1 | 36µs | 52µs | IO::BEGIN@7 |
| 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 | 3 | 98µs | 1 | 50µs | # spent 50µs within IO::BEGIN@5 which was called:
# once (50µs+0s) by IO::Handle::BEGIN@266 at line 5 # spent 50µs making 1 call to IO::BEGIN@5 |
| 6 | 3 | 96µs | 2 | 455µs | # spent 247µs (39+208) within IO::BEGIN@6 which was called:
# once (39µs+208µs) by IO::Handle::BEGIN@266 at line 6 # spent 247µs making 1 call to IO::BEGIN@6
# spent 208µs making 1 call to Exporter::import |
| 7 | 3 | 87µs | 2 | 68µs | # spent 52µs (36+16) within IO::BEGIN@7 which was called:
# once (36µs+16µs) by IO::Handle::BEGIN@266 at line 7 # spent 52µs making 1 call to IO::BEGIN@7
# spent 16µs making 1 call to strict::import |
| 8 | 3 | 448µs | 2 | 166µs | # spent 102µs (38+64) within IO::BEGIN@8 which was called:
# once (38µs+64µs) by IO::Handle::BEGIN@266 at line 8 # spent 102µs making 1 call to IO::BEGIN@8
# spent 64µs making 1 call to warnings::import |
| 9 | |||||
| 10 | 1 | 4µs | our $VERSION = "1.25"; | ||
| 11 | 1 | 789µs | 1 | 761µs | XSLoader::load 'IO', $VERSION; # spent 761µ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 | eval join("", map { "require IO::" . (/(\w+)/)[0] . ";\n" } @l) | ||||
| 22 | or croak $@; | ||||
| 23 | } | ||||
| 24 | |||||
| 25 | 1 | 18µs | 1; | ||
| 26 | |||||
| 27 | __END__ |