← 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/Driver.pm
StatementsExecuted 16 statements in 31µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
911140µs282µsCGI::Session::Driver::::newCGI::Session::Driver::new
11119µs28µsCGI::Session::Driver::::BEGIN@3CGI::Session::Driver::BEGIN@3
1119µs39µ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
3237µs
# spent 28µs (19+9) within CGI::Session::Driver::BEGIN@3 which was called: # once (19µs+9µs) by CGI::Session::Driver::DBI::BEGIN@9 at line 3
use strict;
# spent 28µs making 1 call to CGI::Session::Driver::BEGIN@3 # spent 9µs making 1 call to strict::import
4#
5
6270µs
# spent 39µs (9+31) within CGI::Session::Driver::BEGIN@6 which was called: # once (9µs+31µs) by CGI::Session::Driver::DBI::BEGIN@9 at line 6
use Carp;
# spent 39µs making 1 call to CGI::Session::Driver::BEGIN@6 # spent 30µs making 1 call to Exporter::import
716µ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
9$CGI::Session::Driver::VERSION = '4.43';
10@CGI::Session::Driver::ISA = qw(CGI::Session::ErrorHandler);
11
12
# spent 282µs (140+143) within CGI::Session::Driver::new which was called 9 times, avg 31µs/call: # 9 times (140µs+143µs) by CGI::Session::_driver at line 117 of CGI/Session.pm, avg 31µs/call
sub new {
132700ns 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
2224µs if (! $args->{TableName}) {
23 $args->{TableName} = 'sessions';
24 }
25
2622µs if (! $args->{IdColName}) {
27 $args->{IdColName} = 'id';
28 }
29
3023µs if (! $args->{DataColName}) {
31 $args->{DataColName} = 'a_session';
32 }
33
34 # perform a shallow copy of $args, to prevent modification
3526µs my $self = bless ({%$args}, $class);
36213µs9143µs return $self if $self->init();
# spent 143µs making 9 calls to CGI::Session::Driver::mysql::init, avg 16µ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
651;
66
67__END__;