← Index
NYTProf Performance Profile   « block view • line view • sub view »
For /usr/local/src/github.com/foswiki/core/bin/view
  Run on Sun Dec 4 17:17:59 2011
Reported on Sun Dec 4 17:27:00 2011

Filename/usr/local/src/github.com/foswiki/core/bin/view
StatementsExecuted 22 statements in 5.65ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11123.0ms211msmain::::BEGIN@27 main::BEGIN@27
1114.27ms8.44msmain::::BEGIN@28 main::BEGIN@28
1113.38ms3.42msmain::::BEGIN@4 main::BEGIN@4
1113.17ms4.74msmain::::BEGIN@6 main::BEGIN@6
1113.17ms7.94msmain::::BEGIN@11 main::BEGIN@11
67010102.03ms2.03msUNIVERSAL::::isaUNIVERSAL::isa (xsub)
1111.67ms8.09msmain::::BEGIN@8 main::BEGIN@8
111552µs632µsmain::::BEGIN@3 main::BEGIN@3
3711134µs134µsmro::::method_changed_in mro::method_changed_in (xsub)
411195µs95µsInternals::::SvREADONLYInternals::SvREADONLY (xsub)
33288µs88µsUNIVERSAL::::VERSIONUNIVERSAL::VERSION (xsub)
11138µs42µsFcntl::::O_NOINHERIT Fcntl::O_NOINHERIT
11120µs23µsFcntl::::O_TEMPORARY Fcntl::O_TEMPORARY
11120µs23µsFcntl::::O_EXLOCK Fcntl::O_EXLOCK
21110µs10µsUNIVERSAL::::canUNIVERSAL::can (xsub)
11110µs10µsversion::::(bool version::(bool (xsub)
11110µs10µsversion::::(cmp version::(cmp (xsub)
1112µs2µsmain::::CORE:subst main::CORE:subst (opcode)
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
02109µsProfile data that couldn't be associated with a specific line:
# spent 100µs making 1 call to File::Temp::END # spent 9µs making 1 call to Monitor::END
1166µs#!/usr/bin/perl -wT -d:NYTProf
2# See bottom of file for license and copyright information
32501µs2642µs
# spent 632µs (552+80) within main::BEGIN@3 which was called: # once (552µs+80µs) by main::RUNTIME at line 3
use strict;
# spent 632µs making 1 call to main::BEGIN@3 # spent 10µs making 1 call to strict::import
423.21ms23.45ms
# spent 3.42ms (3.38+49µs) within main::BEGIN@4 which was called: # once (3.38ms+49µs) by main::RUNTIME at line 4
use warnings;
# spent 3.42ms making 1 call to main::BEGIN@4 # spent 24µs making 1 call to warnings::import
5
62209µs14.74ms
# spent 4.74ms (3.17+1.57) within main::BEGIN@6 which was called: # once (3.17ms+1.57ms) by main::RUNTIME at line 6
use File::Spec;
# spent 4.74ms making 1 call to main::BEGIN@6
7
8
# spent 8.09ms (1.67+6.42) within main::BEGIN@8 which was called: # once (1.67ms+6.42ms) by main::RUNTIME at line 25
BEGIN {
915µs if ( defined $ENV{GATEWAY_INTERFACE} || defined $ENV{MOD_PERL} ) {
1012µs $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI';
112597µs28.20ms
# spent 7.94ms (3.17+4.77) within main::BEGIN@11 which was called: # once (3.17ms+4.77ms) by main::RUNTIME at line 11
use CGI::Carp qw(fatalsToBrowser);
# spent 7.94ms making 1 call to main::BEGIN@11 # spent 258µs making 1 call to CGI::Carp::import
1213µs $SIG{__DIE__} = \&CGI::Carp::confess;
13 }
14 else {
15 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI';
16 require Carp;
17 $SIG{__DIE__} = \&Carp::confess;
18 }
19111µs138µs my ( $volume, $binDir, $action ) = File::Spec->splitpath(__FILE__);
# spent 38µs making 1 call to File::Spec::Unix::splitpath
2019µs118µs my $setlib = File::Spec->catpath( $volume, $binDir, 'setlib.cfg' );
# spent 18µs making 1 call to File::Spec::Unix::catpath
2111µs @INC = ( '.', grep { $_ ne '.' } @INC ) unless $binDir;
221113µs require $setlib;
23110µs12µs $action =~ s/\..*$//; # Remove eventual file extension
# spent 2µs making 1 call to main::CORE:subst
24112µs $ENV{FOSWIKI_ACTION} = $action;
25152µs18.09ms}
# spent 8.09ms making 1 call to main::BEGIN@8
26
272194µs1211ms
# spent 211ms (23.0+188) within main::BEGIN@27 which was called: # once (23.0ms+188ms) by main::RUNTIME at line 27
use Foswiki ();
# spent 211ms making 1 call to main::BEGIN@27
282643µs18.44ms
# spent 8.44ms (4.27+4.17) within main::BEGIN@28 which was called: # once (4.27ms+4.17ms) by main::RUNTIME at line 28
use Foswiki::UI ();
# spent 8.44ms making 1 call to main::BEGIN@28
29110µs1265s$Foswiki::engine->run();
# spent 265s making 1 call to Foswiki::Engine::CGI::run
30__END__
 
# spent 95µs within Internals::SvREADONLY which was called 41 times, avg 2µs/call: # 41 times (95µs+0s) by constant::import at line 132 of constant.pm, avg 2µs/call
sub Internals::SvREADONLY; # xsub
# spent 88µs within UNIVERSAL::VERSION which was called 3 times, avg 29µs/call: # once (32µs+0s) by Exporter::Heavy::heavy_export at line 106 of Exporter/Heavy.pm # once (28µs+0s) by File::Temp::BEGIN@144 at line 144 of File/Temp.pm # once (28µs+0s) by File::Temp::BEGIN@146 at line 146 of File/Temp.pm
sub UNIVERSAL::VERSION; # xsub
# spent 10µs within UNIVERSAL::can which was called 2 times, avg 5µs/call: # 2 times (10µs+0s) by Foswiki::Users::getCanonicalUserID at line 462 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Users.pm, avg 5µs/call
sub UNIVERSAL::can; # xsub
# spent 2.03ms within UNIVERSAL::isa which was called 670 times, avg 3µs/call: # 347 times (1.03ms+0s) by Foswiki::Store::VC::Handler::new at line 67 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Store/VC/Handler.pm, avg 3µs/call # 159 times (560µs+0s) by Foswiki::Meta::new at line 348 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Meta.pm, avg 4µs/call # 109 times (232µs+0s) by CGI::self_or_default at line 480 of CGI.pm, avg 2µs/call # 44 times (170µs+0s) by Foswiki::Search::formatResults at line 721 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Search.pm, avg 4µs/call # 5 times (18µs+0s) by base::import at line 80 of base.pm, avg 4µs/call # 2 times (6µs+0s) by Foswiki::Engine::finalizeCookies at line 379 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Engine.pm, avg 3µs/call # once (5µs+0s) by Foswiki::UI::handleRequest at line 251 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/UI.pm # once (4µs+0s) by Foswiki::Engine::CGI::run at line 40 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Engine/CGI.pm # once (4µs+0s) by Foswiki::I18N::new at line 145 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/I18N.pm # once (3µs+0s) by Foswiki::Store::VC::Store::query at line 550 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Store/VC/Store.pm
sub UNIVERSAL::isa; # xsub
# spent 2µs within main::CORE:subst which was called: # once (2µs+0s) by main::BEGIN@8 at line 23
sub main::CORE:subst; # opcode
# spent 134µs within mro::method_changed_in which was called 37 times, avg 4µs/call: # 37 times (134µs+0s) by constant::import at line 147 of constant.pm, avg 4µs/call
sub mro::method_changed_in; # xsub
# spent 10µs within version::(bool which was called: # once (10µs+0s) by main::BEGIN@8 at line 57 of Config.pm
sub version::(bool; # xsub
# spent 10µs within version::(cmp which was called: # once (10µs+0s) by main::BEGIN@8 at line 60 of Config.pm
sub version::(cmp; # xsub