← Index
Performance Profile   « block view • line view • sub view »
For /home/chris/git/koha.git/cataloguing/addbiblio.pl
  Run on Tue Aug 25 11:37:23 2009
Reported on Tue Aug 25 11:37:53 2009

File /usr/share/perl5/CGI/Session/ID/md5.pm
Statements Executed 12
Total Time 0.0002321 seconds
Subroutines — ordered by exclusive time
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
0000s0sCGI::Session::ID::md5::::BEGINCGI::Session::ID::md5::BEGIN
0000s0sCGI::Session::ID::md5::::generate_idCGI::Session::ID::md5::generate_id
LineStmts.Exclusive
Time
Avg.Code
1package CGI::Session::ID::md5;
2
3# $Id: md5.pm 420 2008-07-08 01:23:06Z markstos $
4
5246µs23µsuse strict;
# spent 20µs making 1 call to strict::import
6341µs14µsuse Digest::MD5;
# spent 44µs making 1 call to Exporter::import
73128µs42µsuse CGI::Session::ErrorHandler;
# spent 15µs making 1 call to UNIVERSAL::import
8
91800ns800ns$CGI::Session::ID::md5::VERSION = '4.33';
10110µs10µs@CGI::Session::ID::md5::ISA = qw( CGI::Session::ErrorHandler );
11
1212µs2µs*generate = \&generate_id;
13sub generate_id {
14 my $md5 = new Digest::MD5();
15 $md5->add($$ , time() , rand(time) );
16 return $md5->hexdigest();
17}
18
19
2016µs6µs1;
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