Filename | /usr/lib/x86_64-linux-gnu/perl/5.28/Digest/MD5.pm |
Statements | Executed 18 statements in 386µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 12µs | 16µs | BEGIN@3 | Digest::MD5::
1 | 1 | 1 | 7µs | 48µ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 | 28µs | 2 | 19µs | # spent 16µs (12+4) within Digest::MD5::BEGIN@3 which was called:
# once (12µs+4µs) by RBM::BEGIN@22 at line 3 # spent 16µs making 1 call to Digest::MD5::BEGIN@3
# spent 4µs making 1 call to strict::import |
4 | 2 | 172µs | 2 | 90µs | # spent 48µs (7+41) within Digest::MD5::BEGIN@4 which was called:
# once (7µs+41µs) by RBM::BEGIN@22 at line 4 # spent 48µs making 1 call to Digest::MD5::BEGIN@4
# spent 41µs making 1 call to vars::import |
5 | |||||
6 | 1 | 400ns | $VERSION = '2.55'; | ||
7 | |||||
8 | 1 | 500ns | require Exporter; | ||
9 | 1 | 1µs | *import = \&Exporter::import; | ||
10 | 1 | 1µs | @EXPORT_OK = qw(md5 md5_hex md5_base64); | ||
11 | |||||
12 | 1 | 400ns | eval { | ||
13 | 1 | 400ns | require Digest::base; | ||
14 | 1 | 5µs | push(@ISA, 'Digest::base'); | ||
15 | }; | ||||
16 | 1 | 100ns | if ($@) { | ||
17 | my $err = $@; | ||||
18 | *add_bits = sub { die $err }; | ||||
19 | } | ||||
20 | |||||
21 | |||||
22 | 1 | 200ns | eval { | ||
23 | 1 | 300ns | require XSLoader; | ||
24 | 1 | 162µs | 1 | 154µs | XSLoader::load('Digest::MD5', $VERSION); # spent 154µs making 1 call to XSLoader::load |
25 | }; | ||||
26 | 1 | 400ns | 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 | 800ns | *reset = \&new; | ||
42 | } | ||||
43 | |||||
44 | 1 | 13µs | 1; | ||
45 | __END__ |