← Index
Performance Profile   « block view • line view • sub view »
For opac/opac-main.pl
  Run on Fri Jul 18 13:58:34 2008
Reported on Fri Jul 18 13:58:41 2008

File/usr/share/perl5/CGI/Session/ID/md5.pm
Statements Executed16
Total Time0.00028 seconds

Subroutines — ordered by inclusive time then name
CallsInclusive
Time
Subroutine
10.00010CGI::Session::ID::md5::generate_id
00CGI::Session::ID::md5::BEGIN

LineStmts.Exclusive
Time
Avg.Code
1package CGI::Session::ID::md5;
2
3# $Id: md5.pm 351 2006-11-24 14:16:50Z markstos $
4
530.000030.00001use strict;
# spent 0.00001s making 1 calls to strict::import
630.000030.00001use Digest::MD5;
# spent 0.00004s making 1 calls to Exporter::import
730.000110.00004use CGI::Session::ErrorHandler;
# spent 3e-06s making 1 calls to 1
8
911e-061e-06$CGI::Session::ID::md5::VERSION = '4.20';
1013e-063e-06@CGI::Session::ID::md5::ISA = qw( CGI::Session::ErrorHandler );
11
1212e-062e-06*generate = \&generate_id;
13
# spent 0.00010s within CGI::Session::ID::md5::generate_id which was called: # 1 times (0.00010s) by CGI::Session::new at line 74 of /usr/share/perl5/CGI/Session.pm
sub generate_id {
1430.000090.00003 my $md5 = new Digest::MD5();
# spent 0.00002s making 1 calls to Digest::MD5::new
15 $md5->add($$ , time() , rand(time) );
# spent 0.00003s making 1 calls to Digest::MD5::add
16 return $md5->hexdigest();
# spent 0.00001s making 1 calls to Digest::MD5::hexdigest
17}
18
19
2016e-066e-061;
21
22=pod
23
24=head1 NAME
25
26CGI::Session::ID::md5 - default CGI::Session ID generator
27
28=head1 SYNOPSIS
29
30 use CGI::Session;
31 $s = new CGI::Session("id:md5", undef);
32
33=head1 DESCRIPTION
34
35CGI::Session::ID::MD5 is to generate MD5 encoded hexadecimal random ids. The library does not require any arguments.
36
37=head1 LICENSING
38
39For support and licensing see L<CGI::Session|CGI::Session>
40
41=cut