← 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:31:39 2016

Filename/usr/share/perl5/CGI/Session/Driver.pm
StatementsExecuted 25 statements in 383µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
21123µs61µsCGI::Session::Driver::::newCGI::Session::Driver::new
11113µs20µsCGI::Session::Driver::::BEGIN@3CGI::Session::Driver::BEGIN@3
1117µs28µsCGI::Session::Driver::::BEGIN@6CGI::Session::Driver::BEGIN@6
1116µs6µsCGI::Session::Driver::::BEGIN@7CGI::Session::Driver::BEGIN@7
0000s0sCGI::Session::Driver::::dumpCGI::Session::Driver::dump
0000s0sCGI::Session::Driver::::initCGI::Session::Driver::init
0000s0sCGI::Session::Driver::::removeCGI::Session::Driver::remove
0000s0sCGI::Session::Driver::::retrieveCGI::Session::Driver::retrieve
0000s0sCGI::Session::Driver::::storeCGI::Session::Driver::store
0000s0sCGI::Session::Driver::::traverseCGI::Session::Driver::traverse
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::Driver;
2
3234µs226µs
# spent 20µs (13+7) within CGI::Session::Driver::BEGIN@3 which was called: # once (13µs+7µs) by CGI::Session::Driver::DBI::BEGIN@9 at line 3
use strict;
# spent 20µs making 1 call to CGI::Session::Driver::BEGIN@3 # spent 6µs making 1 call to strict::import
4#
5
6247µs249µs
# spent 28µs (7+21) within CGI::Session::Driver::BEGIN@6 which was called: # once (7µs+21µs) by CGI::Session::Driver::DBI::BEGIN@9 at line 6
use Carp;
# spent 28µs making 1 call to CGI::Session::Driver::BEGIN@6 # spent 21µs making 1 call to Exporter::import
72258µs16µs
# spent 6µs within CGI::Session::Driver::BEGIN@7 which was called: # once (6µs+0s) by CGI::Session::Driver::DBI::BEGIN@9 at line 7
use CGI::Session::ErrorHandler;
# spent 6µs making 1 call to CGI::Session::Driver::BEGIN@7
8
91700ns$CGI::Session::Driver::VERSION = '4.43';
1019µs@CGI::Session::Driver::ISA = qw(CGI::Session::ErrorHandler);
11
12
# spent 61µs (23+38) within CGI::Session::Driver::new which was called 2 times, avg 30µs/call: # 2 times (23µs+38µs) by CGI::Session::_driver at line 117 of CGI/Session.pm, avg 30µs/call
sub new {
132600ns my $class = shift;
142800ns my $args = shift || {};
15
162900ns unless ( ref $args ) {
17 croak "$class->new(): Invalid argument type passed to driver";
18 }
19
20 # Set defaults.
21
2222µs if (! $args->{TableName}) {
23 $args->{TableName} = 'sessions';
24 }
25
2621µs if (! $args->{IdColName}) {
27 $args->{IdColName} = 'id';
28 }
29
3021µs if (! $args->{DataColName}) {
31 $args->{DataColName} = 'a_session';
32 }
33
34 # perform a shallow copy of $args, to prevent modification
3527µs my $self = bless ({%$args}, $class);
36216µs238µs return $self if $self->init();
# spent 38µs making 2 calls to CGI::Session::Driver::mysql::init, avg 19µs/call
37 return $self->set_error( "$class->init() returned false");
38}
39
40sub init { 1 }
41
42sub retrieve {
43 croak "retrieve(): " . ref($_[0]) . " failed to implement this method!";
44}
45
46sub store {
47 croak "store(): " . ref($_[0]) . " failed to implement this method!";
48}
49
50sub remove {
51 croak "remove(): " . ref($_[0]) . " failed to implement this method!";
52}
53
54sub traverse {
55 croak "traverse(): " . ref($_[0]) . " failed to implement this method!";
56}
57
58sub dump {
59 require Data::Dumper;
60 my $d = Data::Dumper->new([$_[0]], [ref $_[0]]);
61 return $d->Dump;
62}
63
64
6514µs1;
66
67__END__;