Filename | /usr/lib/perl/5.14/Digest/MD5.pm |
Statements | Executed 18 statements in 736µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
3 | 3 | 2 | 47µs | 47µs | md5_hex (xsub) | Digest::MD5::
1 | 1 | 1 | 26µs | 34µs | BEGIN@3 | Digest::MD5::
1 | 1 | 1 | 18µs | 18µs | new (xsub) | Digest::MD5::
1 | 1 | 1 | 16µs | 129µs | BEGIN@4 | Digest::MD5::
1 | 1 | 1 | 11µs | 11µs | DESTROY (xsub) | 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 | 50µs | 2 | 41µs | # spent 34µs (26+8) within Digest::MD5::BEGIN@3 which was called:
# once (26µs+8µs) by Foswiki::BEGIN@50 at line 3 # spent 34µs making 1 call to Digest::MD5::BEGIN@3
# spent 8µs making 1 call to strict::import |
4 | 2 | 293µs | 2 | 242µs | # spent 129µs (16+113) within Digest::MD5::BEGIN@4 which was called:
# once (16µs+113µs) by Foswiki::BEGIN@50 at line 4 # spent 129µs making 1 call to Digest::MD5::BEGIN@4
# spent 113µs making 1 call to vars::import |
5 | |||||
6 | 1 | 2µs | $VERSION = '2.51'; | ||
7 | |||||
8 | 1 | 2µs | require Exporter; | ||
9 | 1 | 3µs | *import = \&Exporter::import; | ||
10 | 1 | 3µs | @EXPORT_OK = qw(md5 md5_hex md5_base64); | ||
11 | |||||
12 | 1 | 3µs | eval { | ||
13 | 1 | 107µs | require Digest::base; | ||
14 | 1 | 11µs | push(@ISA, 'Digest::base'); | ||
15 | }; | ||||
16 | 1 | 1µs | if ($@) { | ||
17 | my $err = $@; | ||||
18 | *add_bits = sub { die $err }; | ||||
19 | } | ||||
20 | |||||
21 | |||||
22 | 1 | 6µs | eval { | ||
23 | 1 | 2µs | require XSLoader; | ||
24 | 1 | 227µs | 1 | 218µs | XSLoader::load('Digest::MD5', $VERSION); # spent 218µs making 1 call to XSLoader::load |
25 | }; | ||||
26 | 1 | 3µs | 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 | push(@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 | 3µs | *reset = \&new; | ||
42 | } | ||||
43 | |||||
44 | 1 | 21µs | 1; | ||
45 | __END__ | ||||
# spent 11µs within Digest::MD5::DESTROY which was called:
# once (11µs+0s) by Foswiki::finish at line 2111 of /usr/local/src/github.com/foswiki/core/lib/Foswiki.pm | |||||
# spent 47µs within Digest::MD5::md5_hex which was called 3 times, avg 16µs/call:
# once (22µs+0s) by Foswiki::Validation::generateValidationKey at line 105 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Validation.pm
# once (20µs+0s) by Foswiki::Search::searchWeb at line 330 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Search.pm
# once (5µs+0s) by Foswiki::Validation::generateValidationKey at line 115 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Validation.pm | |||||
# spent 18µs within Digest::MD5::new which was called:
# once (18µs+0s) by Foswiki::new at line 1673 of /usr/local/src/github.com/foswiki/core/lib/Foswiki.pm |