Filename | /usr/share/perl/5.20/bytes.pm |
Statements | Executed 6 statements in 23µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
3 | 3 | 3 | 10µs | 10µs | import | bytes::
0 | 0 | 0 | 0s | 0s | AUTOLOAD | bytes::
0 | 0 | 0 | 0s | 0s | unimport | bytes::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package bytes; | ||||
2 | |||||
3 | 1 | 300ns | our $VERSION = '1.04'; | ||
4 | |||||
5 | 1 | 100ns | $bytes::hint_bits = 0x00000008; | ||
6 | |||||
7 | # spent 10µs within bytes::import which was called 3 times, avg 3µs/call:
# once (4µs+0s) by Template::Provider::BEGIN@1089 at line 1089 of Template/Provider.pm
# once (3µs+0s) by Data::Dumper::BEGIN@731 at line 731 of Data/Dumper.pm
# once (2µs+0s) by Encode::utf8::BEGIN@323 at line 323 of Encode.pm | ||||
8 | 3 | 21µs | $^H |= $bytes::hint_bits; | ||
9 | } | ||||
10 | |||||
11 | sub unimport { | ||||
12 | $^H &= ~$bytes::hint_bits; | ||||
13 | } | ||||
14 | |||||
15 | sub AUTOLOAD { | ||||
16 | require "bytes_heavy.pl"; | ||||
17 | goto &$AUTOLOAD if defined &$AUTOLOAD; | ||||
18 | require Carp; | ||||
19 | Carp::croak("Undefined subroutine $AUTOLOAD called"); | ||||
20 | } | ||||
21 | |||||
22 | sub length (_); | ||||
23 | sub chr (_); | ||||
24 | sub ord (_); | ||||
25 | sub substr ($$;$$); | ||||
26 | sub index ($$;$); | ||||
27 | sub rindex ($$;$); | ||||
28 | |||||
29 | 1 | 2µs | 1; | ||
30 | __END__ |