Filename | /usr/share/perl/5.10/bytes_heavy.pl |
Statements | Executed 1145 statements in 4.20ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
569 | 2 | 1 | 2.06ms | 2.06ms | substr | bytes::
569 | 3 | 2 | 1.35ms | 1.35ms | length | bytes::
1 | 1 | 1 | 18µs | 23µs | BEGIN@4 | bytes::
1 | 1 | 1 | 12µs | 15µs | BEGIN@34 | bytes::
1 | 1 | 1 | 9µs | 12µs | BEGIN@22 | bytes::
1 | 1 | 1 | 9µs | 11µs | BEGIN@9 | bytes::
1 | 1 | 1 | 8µs | 10µs | BEGIN@17 | bytes::
1 | 1 | 1 | 8µs | 10µs | BEGIN@27 | bytes::
0 | 0 | 0 | 0s | 0s | chr | bytes::
0 | 0 | 0 | 0s | 0s | index | bytes::
0 | 0 | 0 | 0s | 0s | ord | bytes::
0 | 0 | 0 | 0s | 0s | rindex | bytes::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package bytes; | ||||
2 | |||||
3 | # spent 1.35ms within bytes::length which was called 569 times, avg 2µs/call:
# 544 times (1.18ms+0s) by MARC::File::USMARC::decode at line 175 of MARC/File/USMARC.pm, avg 2µs/call
# 24 times (166µs+0s) by MARC::File::USMARC::decode at line 126 of MARC/File/USMARC.pm, avg 7µs/call
# once (2µs+0s) by MARC::File::USMARC::decode at line 17 of bytes.pm | ||||
4 | 1 | 52µs | 2 | 28µs | # spent 23µs (18+5) within bytes::BEGIN@4 which was called:
# once (18µs+5µs) by bytes::AUTOLOAD at line 4 # spent 23µs making 1 call to bytes::BEGIN@4
# spent 5µs making 1 call to bytes::import |
5 | 569 | 1.53ms | return CORE::length($_[0]); | ||
6 | } | ||||
7 | |||||
8 | # spent 2.06ms within bytes::substr which was called 569 times, avg 4µs/call:
# 544 times (1.91ms+0s) by MARC::File::USMARC::decode at line 168 of MARC/File/USMARC.pm, avg 4µs/call
# 25 times (152µs+0s) by MARC::File::USMARC::decode at line 136 of MARC/File/USMARC.pm, avg 6µs/call | ||||
9 | 1 | 77µs | 2 | 14µs | # spent 11µs (9+2) within bytes::BEGIN@9 which was called:
# once (9µs+2µs) by bytes::AUTOLOAD at line 9 # spent 11µs making 1 call to bytes::BEGIN@9
# spent 2µs making 1 call to bytes::import |
10 | return | ||||
11 | 569 | 2.33ms | @_ == 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 | 49µs | 2 | 13µs | # spent 10µs (8+2) within bytes::BEGIN@17 which was called:
# once (8µs+2µs) by bytes::AUTOLOAD at line 17 # spent 10µ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 | 14µs | # spent 12µs (9+2) within bytes::BEGIN@22 which was called:
# once (9µs+2µs) by bytes::AUTOLOAD at line 22 # spent 12µ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 | 67µs | 2 | 12µs | # spent 10µs (8+2) within bytes::BEGIN@27 which was called:
# once (8µ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 | 57µs | 2 | 18µs | # spent 15µs (12+3) within bytes::BEGIN@34 which was called:
# once (12µs+3µs) by bytes::AUTOLOAD at line 34 # spent 15µ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 | 2µs | 1; |