| Filename | /usr/share/perl/5.10/bytes_heavy.pl | 
| Statements | Executed 1145 statements in 5.21ms | 
| Calls | P | F | Exclusive Time  | 
        Inclusive Time  | 
        Subroutine | 
|---|---|---|---|---|---|
| 569 | 2 | 1 | 2.85ms | 2.85ms | bytes::substr | 
| 569 | 3 | 2 | 1.59ms | 1.59ms | bytes::length | 
| 1 | 1 | 1 | 26µs | 34µs | bytes::BEGIN@4 | 
| 1 | 1 | 1 | 10µs | 12µs | bytes::BEGIN@34 | 
| 1 | 1 | 1 | 10µs | 12µs | bytes::BEGIN@17 | 
| 1 | 1 | 1 | 9µs | 11µs | bytes::BEGIN@22 | 
| 1 | 1 | 1 | 8µs | 11µs | bytes::BEGIN@9 | 
| 1 | 1 | 1 | 7µs | 10µs | bytes::BEGIN@27 | 
| 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 | 
| Line | State ments  | 
      Time on line  | 
      Calls | Time in subs  | 
      Code | 
|---|---|---|---|---|---|
| 1 | package bytes; | ||||
| 2 | |||||
| 3 | # spent 1.59ms within bytes::length which was called 569 times, avg 3µs/call:
# 544 times (1.41ms+0s) by MARC::File::USMARC::decode at line 175 of MARC/File/USMARC.pm, avg 3µs/call
#  24 times (174µs+0s) by MARC::File::USMARC::decode at line 126 of MARC/File/USMARC.pm, avg 7µs/call
#      once (3µs+0s) by MARC::File::USMARC::decode at line 17 of bytes.pm  | ||||
| 4 | 1 | 69µs | 2 | 43µs | # spent 34µs (26+9) within bytes::BEGIN@4 which was called:
#    once (26µs+9µs) by bytes::AUTOLOAD at line 4     # spent    34µs making 1 call to bytes::BEGIN@4
    # spent     9µs making 1 call to bytes::import  | 
| 5 | 569 | 1.90ms | return CORE::length($_[0]); | ||
| 6 | } | ||||
| 7 | |||||
| 8 | # spent 2.85ms within bytes::substr which was called 569 times, avg 5µs/call:
# 544 times (2.66ms+0s) by MARC::File::USMARC::decode at line 168 of MARC/File/USMARC.pm, avg 5µs/call
#  25 times (187µs+0s) by MARC::File::USMARC::decode at line 136 of MARC/File/USMARC.pm, avg 7µs/call  | ||||
| 9 | 1 | 82µs | 2 | 14µs | # spent 11µs (8+3) within bytes::BEGIN@9 which was called:
#    once (8µs+3µs) by bytes::AUTOLOAD at line 9     # spent    11µs making 1 call to bytes::BEGIN@9
    # spent     3µs making 1 call to bytes::import  | 
| 10 | return | ||||
| 11 | 569 | 2.94ms | @_ == 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 | 47µs | 2 | 15µs | # spent 12µs (10+2) within bytes::BEGIN@17 which was called:
#    once (10µs+2µs) by bytes::AUTOLOAD at line 17     # spent    12µs making 1 call to bytes::BEGIN@17
    # spent     2µs making 1 call to bytes::import  | 
| 18 | return CORE::ord($_[0]); | ||||
| 19 | } | ||||
| 20 | |||||
| 21 | sub chr (_) { | ||||
| 22 | 1 | 43µs | 2 | 13µs | # spent 11µs (9+2) within bytes::BEGIN@22 which was called:
#    once (9µs+2µs) by bytes::AUTOLOAD at line 22     # spent    11µs making 1 call to bytes::BEGIN@22
    # spent     2µs making 1 call to bytes::import  | 
| 23 | return CORE::chr($_[0]); | ||||
| 24 | } | ||||
| 25 | |||||
| 26 | sub index ($$;$) { | ||||
| 27 | 1 | 60µs | 2 | 12µs | # spent 10µs (7+2) within bytes::BEGIN@27 which was called:
#    once (7µs+2µs) by bytes::AUTOLOAD at line 27     # spent    10µs making 1 call to bytes::BEGIN@27
    # spent     2µ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 | 61µs | 2 | 15µs | # spent 12µs (10+2) within bytes::BEGIN@34 which was called:
#    once (10µs+2µs) by bytes::AUTOLOAD at line 34     # spent    12µs making 1 call to bytes::BEGIN@34
    # spent     2µ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; |