← 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:50:58 2016
Reported on Fri Jan 8 13:51:26 2016

Filename/home/vagrant/kohaclone/plack.pl
StatementsExecuted 4018 statements in 71.7ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1112.93ms23.8msCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::BEGIN@5CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@5
11131µs160µ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::::CORE:openCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:open (opcode)
11117µs62µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::BEGIN@4CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@4
11117µs17µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::BEGIN@6CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@6
2219µs9µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::CORE:printCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:print (opcode)
1115µs5µsCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::::CORE:packCGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:pack (opcode)
1114µs4µ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__[:43]CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[:43]
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
212µs
32191µs2289µs
# spent 160µs (31+129) within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@3 which was called: # once (31µs+129µs) by CGI::Compile::_eval at line 3
use Modern::Perl;
# spent 160µs making 1 call to CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@3 # spent 129µs making 1 call to Modern::Perl::import
4287µs2106µs
# spent 62µs (17+44) within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@4 which was called: # once (17µs+44µs) by CGI::Compile::_eval at line 4
use CGI;
# spent 62µs making 1 call to CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@4 # spent 44µs making 1 call to CGI::import
521.25ms224.0ms
# spent 23.8ms (2.93+20.9) within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@5 which was called: # once (2.93ms+20.9ms) 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 147µs making 1 call to Exporter::import
62240µs117µs
# spent 17µs within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::BEGIN@6 which was called: # once (17µs+0s) by CGI::Compile::_eval at line 6
use Koha::Libraries;
712µsfor ( 1 .. 1000 ) {
810001.34ms for my $l (qw(CPL MPL IPT )) {
9300064.1ms600013.6s Koha::Libraries->find($l)->branchname;
# spent 13.4s making 3000 calls to Koha::Objects::find, avg 4.48ms/call # spent 146ms making 3000 calls to Koha::Object::AUTOLOAD, avg 49µs/call
10 }
11}
12
1313.08ms13.75msmy $query = CGI->new;
1411.09ms21.08msprint $query->header({
# spent 1.07ms making 1 call to CGI::AUTOLOAD # spent 8µs making 1 call to CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:print
15 type => 'text/html',
16 status => '200 OK',
17 charset => 'UTF-8',
18 Pragma => 'no-cache',
19});
20119µs11µsprint "<html><body>Hello</body></html>";
21
22#my $cookie = undef;
23#output_html_with_http_headers $query, $cookie, "<html><body>Hello</body></html>";
24
25};
2611µs my $self = shift;
27129µs29µs my $exit_val = unpack('C', pack('C', sprintf('%.0f', $rv)));
281500ns if ($@) {
29 die $@ unless (
30 ref($@) eq 'ARRAY' and
31 $@->[0] eq "EXIT\n"
32 );
33 my $exit_param = unpack('C', pack('C', sprintf('%.0f', $@->[1])));
34
35 if ($exit_param != 0 && !$CGI::Compile::RETURN_EXIT_VAL && !$self->{return_exit_val}) {
36 die "exited nonzero: $exit_param";
37 }
38
39 $exit_val = $exit_param;
40 }
41
421273µs return $exit_val;
4315µs };
 
# spent 18µs within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:open which was called: # once (18µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[/home/vagrant/kohaclone/plack.pl:43] at line 2 of (eval 163)[CGI/Compile.pm:12]
sub CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:open; # opcode
# spent 5µs within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:pack which was called: # once (5µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[/home/vagrant/kohaclone/plack.pl:43] at line 27
sub CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:pack; # opcode
# spent 9µs within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:print which was called 2 times, avg 5µs/call: # once (8µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[/home/vagrant/kohaclone/plack.pl:43] at line 14 # once (1µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[/home/vagrant/kohaclone/plack.pl:43] at line 20
sub CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:print; # opcode
# spent 4µs within CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:unpack which was called: # once (4µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::__ANON__[/home/vagrant/kohaclone/plack.pl:43] at line 27
sub CGI::Compile::ROOT::home_vagrant_kohaclone_plack_2epl::CORE:unpack; # opcode