← Index
NYTProf Performance Profile   « line view »
For svc/members/upsert
  Run on Tue Jan 13 11:50:22 2015
Reported on Tue Jan 13 12:09:51 2015

Filename/usr/share/perl5/CGI/Session/ID/md5.pm
StatementsExecuted 10 statements in 258µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11118µs36µsCGI::Session::ID::md5::::BEGIN@5CGI::Session::ID::md5::BEGIN@5
11117µs44µsCGI::Session::ID::md5::::BEGIN@6CGI::Session::ID::md5::BEGIN@6
1116µs6µ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
5242µs254µs
# spent 36µs (18+18) within CGI::Session::ID::md5::BEGIN@5 which was called: # once (18µs+18µs) by CGI::Session::_load_pluggables at line 5
use strict;
# spent 36µs making 1 call to CGI::Session::ID::md5::BEGIN@5 # spent 18µs making 1 call to strict::import
6243µs272µs
# spent 44µs (17+28) within CGI::Session::ID::md5::BEGIN@6 which was called: # once (17µs+28µs) by CGI::Session::_load_pluggables at line 6
use Digest::MD5;
# spent 44µs making 1 call to CGI::Session::ID::md5::BEGIN@6 # spent 28µs making 1 call to Exporter::import
72158µs16µs
# spent 6µs within CGI::Session::ID::md5::BEGIN@7 which was called: # once (6µs+0s) by CGI::Session::_load_pluggables at line 7
use CGI::Session::ErrorHandler;
# spent 6µs making 1 call to CGI::Session::ID::md5::BEGIN@7
8
91600ns$CGI::Session::ID::md5::VERSION = '4.43';
1018µs@CGI::Session::ID::md5::ISA = qw( CGI::Session::ErrorHandler );
11
1212µs*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
2015µ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 = 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