← Index
NYTProf Performance Profile   « line view »
For ./view
  Run on Fri Jul 31 19:05:14 2015
Reported on Fri Jul 31 19:08:10 2015

Filename/var/www/foswiki11/lib/Foswiki/Query/OP_uc.pm
StatementsExecuted 14 statements in 307µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
31146µs95µsFoswiki::Query::OP_uc::::newFoswiki::Query::OP_uc::new
11128µs46µsFoswiki::Query::OP_uc::::BEGIN@11Foswiki::Query::OP_uc::BEGIN@11
11114µs21µsFoswiki::Query::OP_uc::::BEGIN@12Foswiki::Query::OP_uc::BEGIN@12
1117µs7µsFoswiki::Query::OP_uc::::BEGIN@14Foswiki::Query::OP_uc::BEGIN@14
0000s0sFoswiki::Query::OP_uc::::__ANON__[:31]Foswiki::Query::OP_uc::__ANON__[:31]
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
11240µs265µs
# spent 46µs (28+18) within Foswiki::Query::OP_uc::BEGIN@11 which was called: # once (28µs+18µs) by Foswiki::Query::Parser::new at line 11
use strict;
# spent 46µs making 1 call to Foswiki::Query::OP_uc::BEGIN@11 # spent 18µs making 1 call to strict::import
12241µs228µs
# spent 21µs (14+7) within Foswiki::Query::OP_uc::BEGIN@12 which was called: # once (14µs+7µs) by Foswiki::Query::Parser::new at line 12
use warnings;
# spent 21µs making 1 call to Foswiki::Query::OP_uc::BEGIN@12 # spent 7µs making 1 call to warnings::import
13
142167µs17µs
# spent 7µs within Foswiki::Query::OP_uc::BEGIN@14 which was called: # once (7µs+0s) by Foswiki::Query::Parser::new at line 14
use Foswiki::Query::UnaryOP ();
# spent 7µs making 1 call to Foswiki::Query::OP_uc::BEGIN@14
15111µsour @ISA = ('Foswiki::Query::UnaryOP');
16
17
# spent 95µs (46+49) within Foswiki::Query::OP_uc::new which was called 3 times, avg 32µs/call: # 3 times (46µs+49µs) by Foswiki::Query::Parser::new at line 47 of /var/www/foswiki11/lib/Foswiki/Query/Parser.pm, avg 32µs/call
sub new {
1832µs my $class = shift;
19
20342µs349µs return $class->SUPER::new(
# spent 49µs making 3 calls to Foswiki::Query::UnaryOP::new, avg 16µs/call
21 name => 'uc',
22 prec => 600,
23 casematters => 0
24 );
25}
26
27sub evaluate {
28 my $this = shift;
29 my $node = shift;
30 return $this->evalUnary( $node,
31 sub { my $arg = shift; defined $arg ? uc($arg) : undef }, @_ );
32}
33
3414µs1;
35__END__