| Filename | /usr/lib/perl/5.10/IO/Seekable.pm |
| Statements | Executed 22 statements in 1.08ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 3.22ms | 4.36ms | IO::Seekable::BEGIN@9 |
| 1 | 1 | 1 | 32µs | 32µs | IO::Seekable::BEGIN@5 |
| 1 | 1 | 1 | 19µs | 101µs | IO::Seekable::BEGIN@12 |
| 1 | 1 | 1 | 16µs | 21µs | IO::Seekable::BEGIN@7 |
| 1 | 1 | 1 | 12µs | 83µs | IO::Seekable::BEGIN@6 |
| 0 | 0 | 0 | 0s | 0s | IO::Seekable::seek |
| 0 | 0 | 0 | 0s | 0s | IO::Seekable::sysseek |
| 0 | 0 | 0 | 0s | 0s | IO::Seekable::tell |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | # | ||||
| 2 | |||||
| 3 | package IO::Seekable; | ||||
| 4 | |||||
| 5 | 3 | 52µs | 1 | 32µs | # spent 32µs within IO::Seekable::BEGIN@5 which was called:
# once (32µs+0s) by IO::File::BEGIN@11 at line 5 # spent 32µs making 1 call to IO::Seekable::BEGIN@5 |
| 6 | 3 | 37µs | 2 | 154µs | # spent 83µs (12+71) within IO::Seekable::BEGIN@6 which was called:
# once (12µs+71µs) by IO::File::BEGIN@11 at line 6 # spent 83µs making 1 call to IO::Seekable::BEGIN@6
# spent 71µs making 1 call to Exporter::import |
| 7 | 3 | 59µs | 2 | 26µs | # spent 21µs (16+5) within IO::Seekable::BEGIN@7 which was called:
# once (16µs+5µs) by IO::File::BEGIN@11 at line 7 # spent 21µs making 1 call to IO::Seekable::BEGIN@7
# spent 5µs making 1 call to strict::import |
| 8 | 1 | 2µs | our($VERSION, @EXPORT, @ISA); | ||
| 9 | 3 | 174µs | 1 | 4.36ms | # spent 4.36ms (3.22+1.14) within IO::Seekable::BEGIN@9 which was called:
# once (3.22ms+1.14ms) by IO::File::BEGIN@11 at line 9 # spent 4.36ms making 1 call to IO::Seekable::BEGIN@9 |
| 10 | # XXX we can't get these from IO::Handle or we'll get prototype | ||||
| 11 | # mismatch warnings on C<use POSIX; use IO::File;> :-( | ||||
| 12 | 3 | 719µs | 2 | 183µs | # spent 101µs (19+82) within IO::Seekable::BEGIN@12 which was called:
# once (19µs+82µs) by IO::File::BEGIN@11 at line 12 # spent 101µs making 1 call to IO::Seekable::BEGIN@12
# spent 82µs making 1 call to Exporter::import |
| 13 | 1 | 1µs | require Exporter; | ||
| 14 | |||||
| 15 | 1 | 2µs | @EXPORT = qw(SEEK_SET SEEK_CUR SEEK_END); | ||
| 16 | 1 | 9µs | @ISA = qw(Exporter); | ||
| 17 | |||||
| 18 | 1 | 1µs | $VERSION = "1.10"; | ||
| 19 | 1 | 21µs | $VERSION = eval $VERSION; # spent 4µs executing statements in string eval | ||
| 20 | |||||
| 21 | sub seek { | ||||
| 22 | @_ == 3 or croak 'usage: $io->seek(POS, WHENCE)'; | ||||
| 23 | seek($_[0], $_[1], $_[2]); | ||||
| 24 | } | ||||
| 25 | |||||
| 26 | sub sysseek { | ||||
| 27 | @_ == 3 or croak 'usage: $io->sysseek(POS, WHENCE)'; | ||||
| 28 | sysseek($_[0], $_[1], $_[2]); | ||||
| 29 | } | ||||
| 30 | |||||
| 31 | sub tell { | ||||
| 32 | @_ == 1 or croak 'usage: $io->tell()'; | ||||
| 33 | tell($_[0]); | ||||
| 34 | } | ||||
| 35 | |||||
| 36 | 1 | 8µs | 1; |