← 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:16:49 2016
Reported on Fri Jan 8 14:23:06 2016

Filename/home/vagrant/kohaclone/plack.pl
StatementsExecuted 9 statements in 363µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1112.04ms23.8msCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::BEGIN@5CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@5
31136µs36µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::CORE:openCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:open (opcode)
11126µs152µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::BEGIN@3CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@3
62121µs21µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::CORE:printCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:print (opcode)
11120µs60µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::BEGIN@4CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@4
11115µs15µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::BEGIN@6CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@6
31114µs14µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::CORE:packCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:pack (opcode)
3117µs7µ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__[:39]CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[:39]
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
32278µs
# spent 152µs (26+126) within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@3 which was called: # once (26µs+126µs) by CGI::Compile::_eval at line 3
use Modern::Perl;
# spent 152µs making 1 call to CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@3 # spent 126µs making 1 call to Modern::Perl::import
4299µs
# spent 60µs (20+40) within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@4 which was called: # once (20µs+40µs) by CGI::Compile::_eval at line 4
use CGI;
# spent 60µs making 1 call to CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@4 # spent 40µs making 1 call to CGI::import
5223.9ms
# spent 23.8ms (2.04+21.7) within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@5 which was called: # once (2.04ms+21.7ms) by CGI::Compile::_eval at line 5
use C4::Output;
# spent 23.8ms making 1 call to CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@5 # spent 121µs making 1 call to Exporter::import
6115µs
# spent 15µs within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@6 which was called: # once (15µs+0s) by CGI::Compile::_eval at line 6
use Koha::Libraries;
7159µs32.29smy $libraries = Koha::Libraries->search;
# spent 2.29s making 3 calls to Koha::Objects::search, avg 762ms/call
8
91122µs32.79msmy $query = CGI->new;
# spent 2.79ms making 3 calls to Plack::Sandbox::_2fetc_2fkoha_2fsites_2fkohadev_2fplack_2epsgi::__ANON__, avg 928µs/call
10128µs61.19msprint $query->header({
# spent 641µs making 1 call to CGI::AUTOLOAD # spent 531µs making 2 calls to CGI::header, avg 265µs/call # spent 20µs making 3 calls to CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:print, avg 7µs/call
11 type => 'text/html',
12 status => '200 OK',
13 charset => 'UTF-8',
14 Pragma => 'no-cache',
15});
1618µs32µsprint "<html><body>Hello</body></html>";
# spent 2µs making 3 calls to CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:print, avg 500ns/call
17
18#my $cookie = undef;
19#output_html_with_http_headers $query, $cookie, "<html><body>Hello</body></html>";
20
21};
2212µs my $self = shift;
23116µs621µs my $exit_val = unpack('C', pack('C', sprintf('%.0f', $rv)));
# spent 14µs making 3 calls to CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:pack, avg 5µs/call # spent 7µs making 3 calls to CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:unpack, avg 2µs/call
241200ns if ($@) {
25 die $@ unless (
26 ref($@) eq 'ARRAY' and
27 $@->[0] eq "EXIT\n"
28 );
29 my $exit_param = unpack('C', pack('C', sprintf('%.0f', $@->[1])));
30
31 if ($exit_param != 0 && !$CGI::Compile::RETURN_EXIT_VAL && !$self->{return_exit_val}) {
32 die "exited nonzero: $exit_param";
33 }
34
35 $exit_val = $exit_param;
36 }
37
381126µs return $exit_val;
39 };
 
# spent 36µs within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:open which was called 3 times, avg 12µs/call: # 3 times (36µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[/home/vagrant/kohaclone/plack.pl:39] at line 2 of (eval 163)[CGI/Compile.pm:12], avg 12µs/call
sub CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:open; # opcode
# spent 14µs within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:pack which was called 3 times, avg 5µs/call: # 3 times (14µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[/home/vagrant/kohaclone/plack.pl:39] at line 23, avg 5µs/call
sub CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:pack; # opcode
# spent 21µs within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:print which was called 6 times, avg 4µs/call: # 3 times (20µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[/home/vagrant/kohaclone/plack.pl:39] at line 10, avg 7µs/call # 3 times (2µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[/home/vagrant/kohaclone/plack.pl:39] at line 16, avg 500ns/call
sub CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:print; # opcode
# spent 7µs within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:unpack which was called 3 times, avg 2µs/call: # 3 times (7µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[/home/vagrant/kohaclone/plack.pl:39] at line 23, avg 2µs/call
sub CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:unpack; # opcode