← 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 13:01:18 2016
Reported on Fri Jan 8 13:01:33 2016

Filename/home/vagrant/kohaclone/plack.pl
StatementsExecuted 21 statements in 5.52ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1112.20ms25.7msCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::BEGIN@5CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@5
11124µs24µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::CORE:openCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:open (opcode)
11123µs134µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::BEGIN@3CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@3
11118µs18µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::BEGIN@6CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@6
11113µs49µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::BEGIN@4CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@4
2215µs5µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::CORE:printCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:print (opcode)
1113µs3µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::CORE:packCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:pack (opcode)
1112µs2µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::CORE:unpackCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:unpack (opcode)
0000s0sCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::__ANON__[:41]CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[:41]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1#!/usr/bin/perl
211µs
32152µs2244µs
# spent 134µs (23+110) within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@3 which was called: # once (23µs+110µs) by CGI::Compile::_eval at line 3
use Modern::Perl;
# spent 134µs making 1 call to CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@3 # spent 110µs making 1 call to Modern::Perl::import
4270µs286µs
# spent 49µs (13+37) within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@4 which was called: # once (13µs+37µs) by CGI::Compile::_eval at line 4
use CGI;
# spent 49µs making 1 call to CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@4 # spent 36µs making 1 call to CGI::import
521.13ms225.9ms
# spent 25.7ms (2.20+23.5) within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@5 which was called: # once (2.20ms+23.5ms) by CGI::Compile::_eval at line 5
use C4::Output;
# spent 25.7ms making 1 call to CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@5 # spent 149µs making 1 call to Exporter::import
62235µs118µs
# spent 18µs within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@6 which was called: # once (18µs+0s) by CGI::Compile::_eval at line 6
use Koha::Libraries;
712µsfor my $l (qw(CPL MPL IPT )) {
831.09ms61.53s Koha::Libraries->find($l)->branchname;
# spent 1.53s making 3 calls to Koha::Objects::find, avg 509ms/call # spent 183µs making 3 calls to Koha::Object::AUTOLOAD, avg 61µs/call
9}
10
1112.07ms12.43msmy $query = CGI->new;
121574µs2562µsprint $query->header({
# spent 557µs making 1 call to CGI::AUTOLOAD # spent 5µs making 1 call to CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:print
13 type => 'text/html',
14 status => '200 OK',
15 charset => 'UTF-8',
16 Pragma => 'no-cache',
17});
1819µs1600nsprint "<html><body>Hello</body></html>";
19
20#my $cookie = undef;
21#output_html_with_http_headers $query, $cookie, "<html><body>Hello</body></html>";
22
23};
241800ns my $self = shift;
25116µs25µs my $exit_val = unpack('C', pack('C', sprintf('%.0f', $rv)));
261200ns if ($@) {
27 die $@ unless (
28 ref($@) eq 'ARRAY' and
29 $@->[0] eq "EXIT\n"
30 );
31 my $exit_param = unpack('C', pack('C', sprintf('%.0f', $@->[1])));
32
33 if ($exit_param != 0 && !$CGI::Compile::RETURN_EXIT_VAL && !$self->{return_exit_val}) {
34 die "exited nonzero: $exit_param";
35 }
36
37 $exit_val = $exit_param;
38 }
39
401163µs return $exit_val;
4116µs };
 
# spent 24µs within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:open which was called: # once (24µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[/home/vagrant/kohaclone/plack.pl:41] at line 2 of (eval 163)[CGI/Compile.pm:12]
sub CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:open; # opcode
# spent 3µs within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:pack which was called: # once (3µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[/home/vagrant/kohaclone/plack.pl:41] at line 25
sub CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:pack; # opcode
# spent 5µs within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:print which was called 2 times, avg 3µs/call: # once (5µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[/home/vagrant/kohaclone/plack.pl:41] at line 12 # once (600ns+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[/home/vagrant/kohaclone/plack.pl:41] at line 18
sub CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:print; # opcode
# spent 2µs within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:unpack which was called: # once (2µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[/home/vagrant/kohaclone/plack.pl:41] at line 25
sub CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:unpack; # opcode