Filename | /usr/local/lib/perl/5.18.2/Digest/MD5.pm |
Statements | Executed 18 statements in 656µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 14µs | 31µs | BEGIN@3 | Digest::MD5::
1 | 1 | 1 | 9µs | 66µs | BEGIN@4 | Digest::MD5::
0 | 0 | 0 | 0s | 0s | __ANON__[:18] | Digest::MD5::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Digest::MD5; | ||||
2 | |||||
3 | 2 | 34µs | 2 | 48µs | # spent 31µs (14+17) within Digest::MD5::BEGIN@3 which was called:
# once (14µs+17µs) by Data::GUID::BEGIN@7 at line 3 # spent 31µs making 1 call to Digest::MD5::BEGIN@3
# spent 17µs making 1 call to strict::import |
4 | 2 | 289µs | 2 | 124µs | # spent 66µs (9+58) within Digest::MD5::BEGIN@4 which was called:
# once (9µs+58µs) by Data::GUID::BEGIN@7 at line 4 # spent 66µs making 1 call to Digest::MD5::BEGIN@4
# spent 58µs making 1 call to vars::import |
5 | |||||
6 | 1 | 800ns | $VERSION = '2.54'; | ||
7 | |||||
8 | 1 | 600ns | require Exporter; | ||
9 | 1 | 2µs | *import = \&Exporter::import; | ||
10 | 1 | 2µs | @EXPORT_OK = qw(md5 md5_hex md5_base64); | ||
11 | |||||
12 | 1 | 600ns | eval { | ||
13 | 1 | 95µs | require Digest::base; | ||
14 | 1 | 7µs | push(@ISA, 'Digest::base'); | ||
15 | }; | ||||
16 | 1 | 300ns | if ($@) { | ||
17 | my $err = $@; | ||||
18 | *add_bits = sub { die $err }; | ||||
19 | } | ||||
20 | |||||
21 | |||||
22 | 1 | 3µs | eval { | ||
23 | 1 | 600ns | require XSLoader; | ||
24 | 1 | 207µs | 1 | 199µs | XSLoader::load('Digest::MD5', $VERSION); # spent 199µs making 1 call to XSLoader::load |
25 | }; | ||||
26 | 1 | 700ns | if ($@) { | ||
27 | my $olderr = $@; | ||||
28 | eval { | ||||
29 | # Try to load the pure perl version | ||||
30 | require Digest::Perl::MD5; | ||||
31 | |||||
32 | Digest::Perl::MD5->import(qw(md5 md5_hex md5_base64)); | ||||
33 | unshift(@ISA, "Digest::Perl::MD5"); # make OO interface work | ||||
34 | }; | ||||
35 | if ($@) { | ||||
36 | # restore the original error | ||||
37 | die $olderr; | ||||
38 | } | ||||
39 | } | ||||
40 | else { | ||||
41 | 1 | 2µs | *reset = \&new; | ||
42 | } | ||||
43 | |||||
44 | 1 | 12µs | 1; | ||
45 | __END__ |