← Index
NYTProf Performance Profile   « line view »
For ./view
  Run on Fri Jul 31 18:42:36 2015
Reported on Fri Jul 31 18:48:13 2015

Filename/var/www/foswikidev/core/bin/view
StatementsExecuted 26 statements in 7.06ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
12679111706ms706msEncode::XS::::decode Encode::XS::decode (xsub)
13201111197ms197msEncode::XS::::encode Encode::XS::encode (xsub)
62379141082.8ms82.8msUNIVERSAL::::isa UNIVERSAL::isa (xsub)
11114.6ms197msmain::::BEGIN@27 main::BEGIN@27
1114.28ms4.29msmain::::BEGIN@4 main::BEGIN@4
1113.98ms5.76msmain::::BEGIN@6 main::BEGIN@6
1113.62ms10.1msmain::::BEGIN@11 main::BEGIN@11
1112.73ms5.06msmain::::BEGIN@28 main::BEGIN@28
111768µs814µsmain::::BEGIN@3 main::BEGIN@3
111572µs6.86msmain::::BEGIN@8 main::BEGIN@8
24933304µs304µsUNIVERSAL::::can UNIVERSAL::can (xsub)
111214µs214µsmain::::BEGIN@0 main::BEGIN@0 (xsub)
111180µs591µsFoswiki::Templates::::BEGIN@589 Foswiki::Templates::BEGIN@589
9411145µs145µsmro::::method_changed_in mro::method_changed_in (xsub)
9811109µs109µsInternals::::SvREADONLY Internals::SvREADONLY (xsub)
33376µs76µsUNIVERSAL::::VERSION UNIVERSAL::VERSION (xsub)
11121µs22µsFcntl::::O_NOINHERIT Fcntl::O_NOINHERIT
11110µs11µsFcntl::::O_TEMPORARY Fcntl::O_TEMPORARY
11110µs11µsFcntl::::O_EXLOCK Fcntl::O_EXLOCK
1116µs6µsFoswiki::Serialise::Embedded::::BEGIN@177Foswiki::Serialise::Embedded::BEGIN@177
0000s0smain::::RUNTIME main::RUNTIME
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
05879µsProfile data that couldn't be associated with a specific line:
# spent 591µs making 1 call to Foswiki::Templates::BEGIN@589 # spent 214µs making 1 call to main::BEGIN@0 # spent 63µs making 1 call to File::Temp::END # spent 6µs making 1 call to Monitor::END # spent 6µs making 1 call to Foswiki::Serialise::Embedded::BEGIN@177
13347µs#! /usr/bin/env perl
2# See bottom of file for license and copyright information
32737µs2860µs
# spent 814µs (768+46) within main::BEGIN@3 which was called: # once (768µs+46µs) by main::RUNTIME at line 3
use strict;
# spent 814µs making 1 call to main::BEGIN@3 # spent 46µs making 1 call to strict::import
424.10ms24.31ms
# spent 4.29ms (4.28+17µs) within main::BEGIN@4 which was called: # once (4.28ms+17µs) by main::RUNTIME at line 4
use warnings;
# spent 4.29ms making 1 call to main::BEGIN@4 # spent 17µs making 1 call to warnings::import
5
62295µs15.76ms
# spent 5.76ms (3.98+1.77) within main::BEGIN@6 which was called: # once (3.98ms+1.77ms) by main::RUNTIME at line 6
use File::Spec;
# spent 5.76ms making 1 call to main::BEGIN@6
7
8
# spent 6.86ms (572µs+6.29) within main::BEGIN@8 which was called: # once (572µs+6.29ms) by main::RUNTIME at line 25
BEGIN {
913µs if ( defined $ENV{GATEWAY_INTERFACE} || defined $ENV{MOD_PERL} ) {
10 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI';
112711µs210.2ms
# spent 10.1ms (3.62+6.47) within main::BEGIN@11 which was called: # once (3.62ms+6.47ms) by main::RUNTIME at line 11
use CGI::Carp qw(fatalsToBrowser);
# spent 10.1ms making 1 call to main::BEGIN@11 # spent 108µs making 1 call to CGI::Carp::import
12 $SIG{__DIE__} = \&CGI::Carp::confess;
13 }
14 else {
1512µs $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI';
161800ns require Carp;
1713µs $SIG{__DIE__} = \&Carp::confess;
18 }
19110µs119µs my ( $volume, $binDir, $action ) = File::Spec->splitpath(__FILE__);
# spent 19µs making 1 call to File::Spec::Unix::splitpath
2019µs111µs my $setlib = File::Spec->catpath( $volume, $binDir, 'setlib.cfg' );
# spent 11µs making 1 call to File::Spec::Unix::catpath
211300ns @INC = ( '.', grep { $_ ne '.' } @INC ) unless $binDir;
221144µs require $setlib;
2311µs $action =~ s/\..*$//; # Remove eventual file extension
24112µs $ENV{FOSWIKI_ACTION} = $action;
25160µs16.86ms}
# spent 6.86ms making 1 call to main::BEGIN@8
26
272211µs1197ms
# spent 197ms (14.6+182) within main::BEGIN@27 which was called: # once (14.6ms+182ms) by main::RUNTIME at line 27
use Foswiki ();
# spent 197ms making 1 call to main::BEGIN@27
282409µs15.06ms
# spent 5.06ms (2.73+2.33) within main::BEGIN@28 which was called: # once (2.73ms+2.33ms) by main::RUNTIME at line 28
use Foswiki::UI ();
# spent 5.06ms making 1 call to main::BEGIN@28
2915µs1138s$Foswiki::engine->run();
# spent 138s making 1 call to Foswiki::Engine::CLI::run
30__END__
31
- -
177
# spent 6µs within Foswiki::Serialise::Embedded::BEGIN@177 which was called: # once (6µs+0s) by Foswiki::Serialise::Embedded::_readKeyValues at line 0
- -
 
# spent 706ms within Encode::XS::decode which was called 126791 times, avg 6µs/call: # 126791 times (706ms+0s) by Encode::decode at line 176 of Encode.pm, avg 6µs/call
sub Encode::XS::decode; # xsub
# spent 197ms within Encode::XS::encode which was called 132011 times, avg 1µs/call: # 132011 times (197ms+0s) by Encode::encode at line 160 of Encode.pm, avg 1µs/call
sub Encode::XS::encode; # xsub
# spent 109µs within Internals::SvREADONLY which was called 98 times, avg 1µs/call: # 98 times (109µs+0s) by constant::import at line 136 of constant.pm, avg 1µs/call
sub Internals::SvREADONLY; # xsub
# spent 76µs within UNIVERSAL::VERSION which was called 3 times, avg 25µs/call: # once (48µs+0s) by Foswiki::BEGIN@208 at line 208 of /var/www/foswikidev/core/lib/Foswiki.pm # once (16µs+0s) by JSON::BEGIN@1 at line 2 of (eval 13)[JSON.pm:290] # once (12µs+0s) by version::BEGIN@1 at line 2 of (eval 53)[version.pm:15]
sub UNIVERSAL::VERSION; # xsub
# spent 304µs within UNIVERSAL::can which was called 249 times, avg 1µs/call: # 240 times (290µs+0s) by Foswiki::Query::Node::simplify at line 354 of /var/www/foswikidev/core/lib/Foswiki/Query/Node.pm, avg 1µs/call # 6 times (9µs+0s) by CGI::can at line 266 of CGI.pm, avg 1µs/call # 3 times (5µs+0s) by Foswiki::Users::getCanonicalUserID at line 480 of /var/www/foswikidev/core/lib/Foswiki/Users.pm, avg 2µs/call
sub UNIVERSAL::can; # xsub
# spent 82.8ms within UNIVERSAL::isa which was called 62379 times, avg 1µs/call: # 26761 times (35.0ms+0s) by Foswiki::Meta::new at line 343 of /var/www/foswikidev/core/lib/Foswiki/Meta.pm, avg 1µs/call # 17520 times (28.2ms+0s) by Foswiki::Search::formatResults at line 760 of /var/www/foswikidev/core/lib/Foswiki/Search.pm, avg 2µs/call # 8760 times (14.3ms+0s) by Foswiki::Query::Node::evaluate at line 207 of /var/www/foswikidev/core/lib/Foswiki/Query/Node.pm, avg 2µs/call # 8760 times (4.79ms+0s) by Foswiki::Query::Node::_getField at line 242 of /var/www/foswikidev/core/lib/Foswiki/Query/Node.pm, avg 547ns/call # 320 times (243µs+0s) by Foswiki::Query::Node::toString at line 94 of /var/www/foswikidev/core/lib/Foswiki/Query/Node.pm, avg 761ns/call # 80 times (137µs+0s) by Foswiki::Store::Rcs::Store::query at line 641 of /var/www/foswikidev/core/lib/Foswiki/Store/Rcs/Store.pm, avg 2µs/call # 80 times (64µs+0s) by Foswiki::Query::Node::toString at line 110 of /var/www/foswikidev/core/lib/Foswiki/Query/Node.pm, avg 805ns/call # 65 times (52µs+0s) by CGI::self_or_default at line 476 of CGI.pm, avg 808ns/call # 20 times (26µs+0s) by CGI::self_or_CGI at line 487 of CGI.pm, avg 1µs/call # 9 times (23µs+0s) by base::import at line 74 of base.pm, avg 3µs/call # once (2µs+0s) by Foswiki::Engine::CLI::run at line 59 of /var/www/foswikidev/core/lib/Foswiki/Engine/CLI.pm # once (2µs+0s) by Foswiki::UI::handleRequest at line 287 of /var/www/foswikidev/core/lib/Foswiki/UI.pm # once (2µs+0s) by Foswiki::load_package at line 1742 of /var/www/foswikidev/core/lib/Foswiki.pm # once (1µs+0s) by Foswiki::I18N::new at line 164 of /var/www/foswikidev/core/lib/Foswiki/I18N.pm
sub UNIVERSAL::isa; # xsub
# spent 214µs within main::BEGIN@0 which was called: # once (214µs+0s) by main::RUNTIME at line 0
sub main::BEGIN@0; # xsub
# spent 145µs within mro::method_changed_in which was called 94 times, avg 2µs/call: # 94 times (145µs+0s) by constant::import at line 151 of constant.pm, avg 2µs/call
sub mro::method_changed_in; # xsub