Filename | /usr/lib/perl5/5.14/bytes.pm |
Statements | Executed 5 statements in 46µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
2 | 2 | 2 | 14µs | 14µ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 | 2µs | our $VERSION = '1.04'; | ||
4 | |||||
5 | 1 | 500ns | $bytes::hint_bits = 0x00000008; | ||
6 | |||||
7 | # spent 14µs within bytes::import which was called 2 times, avg 7µs/call:
# once (9µs+0s) by Data::Dumper::BEGIN@683 at line 683 of Data/Dumper.pm
# once (5µs+0s) by Compress::Raw::Zlib::BEGIN@13 at line 13 of Compress/Raw/Zlib.pm | ||||
8 | 2 | 30µ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 | 13µs | 1; | ||
30 | __END__ |