Filename | /usr/share/perl/5.10/bytes_heavy.pl |
Statements | Executed 79548 statements in 343ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
79541 | 2 | 2 | 263ms | 263ms | length | bytes::
1 | 1 | 1 | 19µs | 24µs | BEGIN@9 | bytes::
1 | 1 | 1 | 16µs | 22µs | BEGIN@4 | bytes::
1 | 1 | 1 | 13µs | 17µs | BEGIN@17 | bytes::
1 | 1 | 1 | 13µs | 18µs | BEGIN@34 | bytes::
1 | 1 | 1 | 12µs | 17µs | BEGIN@22 | bytes::
1 | 1 | 1 | 11µs | 16µ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::
0 | 0 | 0 | 0s | 0s | substr | bytes::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package bytes; | ||||
2 | |||||
3 | # spent 263ms within bytes::length which was called 79541 times, avg 3µs/call:
# 79540 times (263ms+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 | 67µ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 | 342ms | return CORE::length($_[0]); | ||
6 | } | ||||
7 | |||||
8 | sub substr ($$;$$) { | ||||
9 | 1 | 112µs | 2 | 29µs | # spent 24µs (19+5) within bytes::BEGIN@9 which was called:
# once (19µs+5µs) by bytes::AUTOLOAD at line 9 # spent 24µs making 1 call to bytes::BEGIN@9
# spent 5µ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 | 66µs | 2 | 21µs | # spent 17µs (13+4) within bytes::BEGIN@17 which was called:
# once (13µs+4µs) by bytes::AUTOLOAD at line 17 # spent 17µs making 1 call to bytes::BEGIN@17
# spent 4µs making 1 call to bytes::import |
18 | return CORE::ord($_[0]); | ||||
19 | } | ||||
20 | |||||
21 | sub chr (_) { | ||||
22 | 1 | 65µs | 2 | 22µs | # spent 17µs (12+5) within bytes::BEGIN@22 which was called:
# once (12µs+5µs) by bytes::AUTOLOAD at line 22 # spent 17µ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 | 87µs | 2 | 21µs | # spent 16µs (11+5) within bytes::BEGIN@27 which was called:
# once (11µs+5µs) by bytes::AUTOLOAD at line 27 # spent 16µs making 1 call to bytes::BEGIN@27
# spent 5µ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 | 69µs | 2 | 23µs | # spent 18µs (13+5) within bytes::BEGIN@34 which was called:
# once (13µs+5µs) by bytes::AUTOLOAD at line 34 # spent 18µs making 1 call to bytes::BEGIN@34
# spent 5µ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; |