Filename | /usr/lib/perl/5.10/Digest/MD5.pm |
Statements | Executed 20 statements in 635µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
3 | 1 | 1 | 55µs | 55µs | add (xsub) | Digest::MD5::
3 | 1 | 1 | 36µs | 36µs | new (xsub) | Digest::MD5::
1 | 1 | 1 | 20µs | 25µs | BEGIN@3 | Digest::MD5::
3 | 1 | 1 | 13µs | 13µs | hexdigest (xsub) | Digest::MD5::
1 | 1 | 1 | 10µs | 76µs | BEGIN@4 | Digest::MD5::
3 | 1 | 1 | 8µs | 8µ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 | 3 | 37µs | 2 | 29µs | # spent 25µs (20+5) within Digest::MD5::BEGIN@3 which was called:
# once (20µs+5µs) by C4::Auth::BEGIN@22 at line 3 # spent 25µs making 1 call to Digest::MD5::BEGIN@3
# spent 4µs making 1 call to strict::import |
4 | 3 | 196µs | 2 | 142µs | # spent 76µs (10+66) within Digest::MD5::BEGIN@4 which was called:
# once (10µs+66µs) by C4::Auth::BEGIN@22 at line 4 # spent 76µs making 1 call to Digest::MD5::BEGIN@4
# spent 66µs making 1 call to vars::import |
5 | |||||
6 | 1 | 700ns | $VERSION = '2.39'; | ||
7 | |||||
8 | 1 | 800ns | require Exporter; | ||
9 | 1 | 2µs | *import = \&Exporter::import; | ||
10 | 1 | 2µs | @EXPORT_OK = qw(md5 md5_hex md5_base64); | ||
11 | |||||
12 | 1 | 800ns | eval { | ||
13 | 1 | 92µs | require Digest::base; | ||
14 | 1 | 9µs | push(@ISA, 'Digest::base'); | ||
15 | }; | ||||
16 | 1 | 300ns | if ($@) { | ||
17 | my $err = $@; | ||||
18 | *add_bits = sub { die $err }; | ||||
19 | } | ||||
20 | |||||
21 | |||||
22 | 1 | 900ns | eval { | ||
23 | 1 | 1µs | require XSLoader; | ||
24 | 1 | 278µs | 1 | 267µs | XSLoader::load('Digest::MD5', $VERSION); # spent 267µs making 1 call to XSLoader::load |
25 | }; | ||||
26 | 1 | 900ns | 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 | 2µs | *reset = \&new; | ||
42 | } | ||||
43 | |||||
44 | 1 | 13µs | 1; | ||
45 | __END__ | ||||
# spent 8µs within Digest::MD5::DESTROY which was called 3 times, avg 3µs/call:
# 3 times (8µs+0s) by CGI::Session::ID::md5::generate_id at line 80 of CGI/Session.pm, avg 3µs/call | |||||
# spent 55µs within Digest::MD5::add which was called 3 times, avg 18µs/call:
# 3 times (55µs+0s) by CGI::Session::ID::md5::generate_id at line 15 of CGI/Session/ID/md5.pm, avg 18µs/call | |||||
# spent 13µs within Digest::MD5::hexdigest which was called 3 times, avg 4µs/call:
# 3 times (13µs+0s) by CGI::Session::ID::md5::generate_id at line 16 of CGI/Session/ID/md5.pm, avg 4µs/call | |||||
# spent 36µs within Digest::MD5::new which was called 3 times, avg 12µs/call:
# 3 times (36µs+0s) by CGI::Session::ID::md5::generate_id at line 14 of CGI/Session/ID/md5.pm, avg 12µs/call |