← Index
NYTProf Performance Profile   « line view »
For starman worker -M FindBin --max-requests 50 --workers 2 --user=kohadev-koha --group kohadev-koha --pid /var/run/koha/kohadev/plack.pid --daemonize --access-log /var/log/koha/kohadev/plack.log --error-log /var/log/koha/kohadev/plack-error.log -E deployment --socket /var/run/koha/kohadev/plack.sock /etc/koha/sites/kohadev/plack.psgi
  Run on Fri Jan 8 14:31:06 2016
Reported on Fri Jan 8 14:33:30 2016

Filename/usr/share/perl5/CGI/Session/ID/md5.pm
StatementsExecuted 0 statements in 0s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11116µs24µsCGI::Session::ID::md5::::BEGIN@5CGI::Session::ID::md5::BEGIN@5
11114µs33µsCGI::Session::ID::md5::::BEGIN@6CGI::Session::ID::md5::BEGIN@6
1115µs5µsCGI::Session::ID::md5::::BEGIN@7CGI::Session::ID::md5::BEGIN@7
0000s0sCGI::Session::ID::md5::::generate_idCGI::Session::ID::md5::generate_id
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package CGI::Session::ID::md5;
2
3# $Id$
4
5232µs
# spent 24µs (16+7) within CGI::Session::ID::md5::BEGIN@5 which was called: # once (16µs+7µs) by CGI::Session::_load_pluggables at line 5
use strict;
# spent 24µs making 1 call to CGI::Session::ID::md5::BEGIN@5 # spent 8µs making 1 call to strict::import
6252µs
# spent 33µs (14+19) within CGI::Session::ID::md5::BEGIN@6 which was called: # once (14µs+19µs) by CGI::Session::_load_pluggables at line 6
use Digest::MD5;
# spent 33µs making 1 call to CGI::Session::ID::md5::BEGIN@6 # spent 19µs making 1 call to Exporter::import
715µs
# spent 5µs within CGI::Session::ID::md5::BEGIN@7 which was called: # once (5µs+0s) by CGI::Session::_load_pluggables at line 7
use CGI::Session::ErrorHandler;
# spent 5µs making 1 call to CGI::Session::ID::md5::BEGIN@7
8
9$CGI::Session::ID::md5::VERSION = '4.43';
10@CGI::Session::ID::md5::ISA = qw( CGI::Session::ErrorHandler );
11
12*generate = \&generate_id;
13sub generate_id {
14 my $md5 = Digest::MD5->new();
15 $md5->add($$ , time() , rand(time) );
16 return $md5->hexdigest();
17}
18
19
201;
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 = CGI::Session->new("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