← 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:27 2016

Filename/home/vagrant/kohaclone/errors/404.pl
StatementsExecuted 0 statements in 0s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11118.2ms1.74sCGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::::BEGIN@22CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@22
1111.61ms1.90msCGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::::BEGIN@23CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@23
31140µs40µsCGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::::CORE:openCGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::CORE:open (opcode)
11119µs73µsCGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::::BEGIN@21CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@21
11118µs33µsCGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::::BEGIN@19CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@19
31117µs17µsCGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::::CORE:packCGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::CORE:pack (opcode)
11112µs20µsCGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::::BEGIN@20CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@20
11111µs12µsCGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::::BEGIN@24CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@24
3118µs8µsCGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::::CORE:unpackCGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::CORE:unpack (opcode)
0000s0sCGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::::__ANON__[:58]CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::__ANON__[:58]
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
2961µs
# spent 43µs making 3 calls to Template::Provider::DESTROY, avg 14µs/call # spent 14µs making 3 calls to Template::Context::DESTROY, avg 5µs/call # spent 4µs making 3 calls to Template::Stash::XS::DESTROY, avg 1µs/call
3# This file is part of Koha.
4#
5# Koha is free software; you can redistribute it and/or modify it under the
6# terms of the GNU General Public License as published by the Free Software
7# Foundation; either version 2 of the License, or (at your option) any later
8# version.
9#
10# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
11# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License along with
15# Koha; if not, write to the Free Software Foundation, Inc.,
16# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
18
19248µs
# spent 33µs (18+15) within CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@19 which was called: # once (18µs+15µs) by CGI::Compile::_eval at line 19
use strict;
# spent 33µs making 1 call to CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@19 # spent 15µs making 1 call to strict::import
20229µs
# spent 20µs (12+9) within CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@20 which was called: # once (12µs+9µs) by CGI::Compile::_eval at line 20
use warnings;
# spent 20µs making 1 call to CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@20 # spent 9µs making 1 call to warnings::import
212128µs
# spent 73µs (19+55) within CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@21 which was called: # once (19µs+55µs) by CGI::Compile::_eval at line 21
use CGI qw ( -utf8 );
# spent 73µs making 1 call to CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@21 # spent 55µs making 1 call to CGI::import
2221.74s
# spent 1.74s (18.2ms+1.73) within CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@22 which was called: # once (18.2ms+1.73s) by CGI::Compile::_eval at line 22
use C4::Auth;
# spent 1.74s making 1 call to CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@22 # spent 103µs making 1 call to Exporter::import
2321.99ms
# spent 1.90ms (1.61+292µs) within CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@23 which was called: # once (1.61ms+292µs) by CGI::Compile::_eval at line 23
use C4::Output;
# spent 1.90ms making 1 call to CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@23 # spent 89µs making 1 call to Exporter::import
24214µs
# spent 12µs (11+1) within CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@24 which was called: # once (11µs+1µs) by CGI::Compile::_eval at line 24
use C4::Context;
# spent 12µs making 1 call to CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::BEGIN@24 # spent 1µs making 1 call to C4::Context::import
25
2633.09msmy $query = CGI->new;
# spent 3.09ms making 3 calls to Plack::Sandbox::_2fetc_2fkoha_2fsites_2fkohadev_2fplack_2epsgi::__ANON__, avg 1.03ms/call
27333.8msmy $admin = C4::Context->preference('KohaAdminEmailAddress');
# spent 33.8ms making 3 calls to C4::Context::preference, avg 11.3ms/call
2831.09smy ( $template, $loggedinuser, $cookie ) = get_template_and_user(
# spent 1.09s making 3 calls to C4::Auth::get_template_and_user, avg 362ms/call
29 {
30 template_name => 'errors/404.tt',
31 query => $query,
32 type => 'intranet',
33 authnotrequired => 1,
34 debug => 1,
35 }
36);
37322µs$template->param( admin => $admin );
# spent 22µs making 3 calls to C4::Templates::param, avg 7µs/call
386447msoutput_with_http_headers $query, $cookie, $template->output, 'html', '404 Not Found';
# spent 443ms making 3 calls to C4::Templates::output, avg 148ms/call # spent 3.94ms making 3 calls to C4::Output::output_with_http_headers, avg 1.31ms/call
39
40};
41 my $self = shift;
42625µs my $exit_val = unpack('C', pack('C', sprintf('%.0f', $rv)));
# spent 17µs making 3 calls to CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::CORE:pack, avg 6µs/call # spent 8µs making 3 calls to CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::CORE:unpack, avg 3µs/call
43 if ($@) {
44 die $@ unless (
45 ref($@) eq 'ARRAY' and
46 $@->[0] eq "EXIT\n"
47 );
48 my $exit_param = unpack('C', pack('C', sprintf('%.0f', $@->[1])));
49
50 if ($exit_param != 0 && !$CGI::Compile::RETURN_EXIT_VAL && !$self->{return_exit_val}) {
51 die "exited nonzero: $exit_param";
52 }
53
54 $exit_val = $exit_param;
55 }
56
57 return $exit_val;
58 };
 
# spent 40µs within CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::CORE:open which was called 3 times, avg 13µs/call: # 3 times (40µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::__ANON__[/home/vagrant/kohaclone/errors/404.pl:58] at line 2 of (eval 163)[CGI/Compile.pm:12], avg 13µs/call
sub CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::CORE:open; # opcode
# spent 17µs within CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::CORE:pack which was called 3 times, avg 6µs/call: # 3 times (17µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::__ANON__[/home/vagrant/kohaclone/errors/404.pl:58] at line 42, avg 6µs/call
sub CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::CORE:pack; # opcode
# spent 8µs within CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::CORE:unpack which was called 3 times, avg 3µs/call: # 3 times (8µs+0s) by CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::__ANON__[/home/vagrant/kohaclone/errors/404.pl:58] at line 42, avg 3µs/call
sub CGI::Compile::ROOT::home_vagrant_kohaclone_errors_404_2epl::CORE:unpack; # opcode