| Filename | /usr/share/perl/5.10/bytes_heavy.pl |
| Statements | Executed 79548 statements in 349ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 79541 | 2 | 2 | 264ms | 264ms | bytes::length |
| 1 | 1 | 1 | 18µs | 21µs | bytes::BEGIN@34 |
| 1 | 1 | 1 | 16µs | 22µs | bytes::BEGIN@4 |
| 1 | 1 | 1 | 13µs | 16µs | bytes::BEGIN@17 |
| 1 | 1 | 1 | 13µs | 17µs | bytes::BEGIN@27 |
| 1 | 1 | 1 | 12µs | 16µs | bytes::BEGIN@9 |
| 1 | 1 | 1 | 11µs | 16µs | bytes::BEGIN@22 |
| 0 | 0 | 0 | 0s | 0s | bytes::chr |
| 0 | 0 | 0 | 0s | 0s | bytes::index |
| 0 | 0 | 0 | 0s | 0s | bytes::ord |
| 0 | 0 | 0 | 0s | 0s | bytes::rindex |
| 0 | 0 | 0 | 0s | 0s | bytes::substr |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package bytes; | ||||
| 2 | |||||
| 3 | # spent 264ms within bytes::length which was called 79541 times, avg 3µs/call:
# 79540 times (264ms+0s) by MARC::File::USMARC::_build_tag_directory at line 276 of MARC/File/USMARC.pm, avg 3µs/call
# once (4µs+0s) by MARC::File::USMARC::_build_tag_directory at line 17 of bytes.pm | ||||
| 4 | 1 | 64µs | 2 | 28µs | # spent 22µs (16+6) within bytes::BEGIN@4 which was called:
# once (16µs+6µs) by bytes::AUTOLOAD at line 4 # spent 22µs making 1 call to bytes::BEGIN@4
# spent 6µs making 1 call to bytes::import |
| 5 | 79541 | 348ms | return CORE::length($_[0]); | ||
| 6 | } | ||||
| 7 | |||||
| 8 | sub substr ($$;$$) { | ||||
| 9 | 1 | 97µs | 2 | 20µs | # spent 16µs (12+4) within bytes::BEGIN@9 which was called:
# once (12µs+4µs) by bytes::AUTOLOAD at line 9 # spent 16µs making 1 call to bytes::BEGIN@9
# spent 4µs making 1 call to bytes::import |
| 10 | return | ||||
| 11 | @_ == 2 ? CORE::substr($_[0], $_[1]) : | ||||
| 12 | @_ == 3 ? CORE::substr($_[0], $_[1], $_[2]) : | ||||
| 13 | CORE::substr($_[0], $_[1], $_[2], $_[3]) ; | ||||
| 14 | } | ||||
| 15 | |||||
| 16 | sub ord (_) { | ||||
| 17 | 1 | 69µs | 2 | 19µs | # spent 16µs (13+3) within bytes::BEGIN@17 which was called:
# once (13µs+3µs) by bytes::AUTOLOAD at line 17 # spent 16µs making 1 call to bytes::BEGIN@17
# spent 3µs making 1 call to bytes::import |
| 18 | return CORE::ord($_[0]); | ||||
| 19 | } | ||||
| 20 | |||||
| 21 | sub chr (_) { | ||||
| 22 | 1 | 62µs | 2 | 21µs | # spent 16µs (11+5) within bytes::BEGIN@22 which was called:
# once (11µs+5µs) by bytes::AUTOLOAD at line 22 # spent 16µs making 1 call to bytes::BEGIN@22
# spent 5µs making 1 call to bytes::import |
| 23 | return CORE::chr($_[0]); | ||||
| 24 | } | ||||
| 25 | |||||
| 26 | sub index ($$;$) { | ||||
| 27 | 1 | 80µs | 2 | 21µs | # spent 17µs (13+4) within bytes::BEGIN@27 which was called:
# once (13µs+4µs) by bytes::AUTOLOAD at line 27 # spent 17µs making 1 call to bytes::BEGIN@27
# spent 4µs making 1 call to bytes::import |
| 28 | return | ||||
| 29 | @_ == 2 ? CORE::index($_[0], $_[1]) : | ||||
| 30 | CORE::index($_[0], $_[1], $_[2]) ; | ||||
| 31 | } | ||||
| 32 | |||||
| 33 | sub rindex ($$;$) { | ||||
| 34 | 1 | 64µs | 2 | 24µs | # spent 21µs (18+3) within bytes::BEGIN@34 which was called:
# once (18µs+3µs) by bytes::AUTOLOAD at line 34 # spent 21µs making 1 call to bytes::BEGIN@34
# spent 3µs making 1 call to bytes::import |
| 35 | return | ||||
| 36 | @_ == 2 ? CORE::rindex($_[0], $_[1]) : | ||||
| 37 | CORE::rindex($_[0], $_[1], $_[2]) ; | ||||
| 38 | } | ||||
| 39 | |||||
| 40 | 1 | 3µs | 1; |