← 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:20 2011

Filename/usr/local/src/github.com/foswiki/core/lib/Foswiki/Query/OP_uc.pm
StatementsExecuted 14 statements in 358µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
31171µs152µsFoswiki::Query::OP_uc::::newFoswiki::Query::OP_uc::new
11129µs36µsFoswiki::Query::OP_uc::::BEGIN@11Foswiki::Query::OP_uc::BEGIN@11
11117µs35µsFoswiki::Query::OP_uc::::BEGIN@12Foswiki::Query::OP_uc::BEGIN@12
1119µs9µsFoswiki::Query::OP_uc::::BEGIN@14Foswiki::Query::OP_uc::BEGIN@14
0000s0sFoswiki::Query::OP_uc::::__ANON__[:32]Foswiki::Query::OP_uc::__ANON__[:32]
0000s0sFoswiki::Query::OP_uc::::evaluateFoswiki::Query::OP_uc::evaluate
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# See bottom of file for license and copyright information
2
3=begin TML
4
5---+ package Foswiki::Query::OP_uc
6
7=cut
8
9package Foswiki::Query::OP_uc;
10
11246µs244µs
# spent 36µs (29+7) within Foswiki::Query::OP_uc::BEGIN@11 which was called: # once (29µs+7µs) by Foswiki::Query::Parser::BEGIN@57 at line 11
use strict;
# spent 36µs making 1 call to Foswiki::Query::OP_uc::BEGIN@11 # spent 8µs making 1 call to strict::import
12244µs252µs
# spent 35µs (17+17) within Foswiki::Query::OP_uc::BEGIN@12 which was called: # once (17µs+17µs) by Foswiki::Query::Parser::BEGIN@57 at line 12
use warnings;
# spent 35µs making 1 call to Foswiki::Query::OP_uc::BEGIN@12 # spent 18µs making 1 call to warnings::import
13
142188µs19µs
# spent 9µs within Foswiki::Query::OP_uc::BEGIN@14 which was called: # once (9µs+0s) by Foswiki::Query::Parser::BEGIN@57 at line 14
use Foswiki::Query::UnaryOP ();
# spent 9µs making 1 call to Foswiki::Query::OP_uc::BEGIN@14
1519µsour @ISA = ('Foswiki::Query::UnaryOP');
16
17
# spent 152µs (71+81) within Foswiki::Query::OP_uc::new which was called 3 times, avg 51µs/call: # 3 times (71µs+81µs) by Foswiki::Query::Parser::new at line 105 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Query/Parser.pm, avg 51µs/call
sub new {
1836µs my $class = shift;
19
20360µs381µs return $class->SUPER::new( name => 'uc', prec => 1000, casematters => 0 );
# spent 81µs making 3 calls to Foswiki::Query::UnaryOP::new, avg 27µs/call
21}
22
23sub evaluate {
24 my $this = shift;
25 my $node = shift;
26
27 return $this->evalUnary(
28 $node,
29 sub {
30 my $arg = shift;
31 defined $arg ? uc($arg) : undef;
32 },
33 @_
34 );
35}
36
3716µs1;
38__END__