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

Filename/var/www/foswikidev/core/lib/Foswiki/Query/OP_uc.pm
StatementsExecuted 15 statements in 248µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
31137µs72µsFoswiki::Query::OP_uc::::newFoswiki::Query::OP_uc::new
11113µs25µsFoswiki::Query::OP_uc::::BEGIN@11Foswiki::Query::OP_uc::BEGIN@11
1119µs13µsFoswiki::Query::OP_uc::::BEGIN@12Foswiki::Query::OP_uc::BEGIN@12
1114µs4µsFoswiki::Query::OP_uc::::BEGIN@17Foswiki::Query::OP_uc::BEGIN@17
1114µs4µsFoswiki::Query::OP_uc::::BEGIN@14Foswiki::Query::OP_uc::BEGIN@14
0000s0sFoswiki::Query::OP_uc::::__ANON__[:39]Foswiki::Query::OP_uc::__ANON__[:39]
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
11226µs237µs
# spent 25µs (13+12) within Foswiki::Query::OP_uc::BEGIN@11 which was called: # once (13µs+12µs) by Foswiki::Query::Parser::BEGIN@64 at line 11
use strict;
# spent 25µs making 1 call to Foswiki::Query::OP_uc::BEGIN@11 # spent 12µs making 1 call to strict::import
12223µs217µs
# spent 13µs (9+4) within Foswiki::Query::OP_uc::BEGIN@12 which was called: # once (9µs+4µs) by Foswiki::Query::Parser::BEGIN@64 at line 12
use warnings;
# spent 13µs making 1 call to Foswiki::Query::OP_uc::BEGIN@12 # spent 4µs making 1 call to warnings::import
13
14254µs14µs
# spent 4µs within Foswiki::Query::OP_uc::BEGIN@14 which was called: # once (4µs+0s) by Foswiki::Query::Parser::BEGIN@64 at line 14
use Foswiki::Query::UnaryOP ();
# spent 4µs making 1 call to Foswiki::Query::OP_uc::BEGIN@14
1517µsour @ISA = ('Foswiki::Query::UnaryOP');
16
17
# spent 4µs within Foswiki::Query::OP_uc::BEGIN@17 which was called: # once (4µs+0s) by Foswiki::Query::Parser::BEGIN@64 at line 22
BEGIN {
1815µs if ( $Foswiki::cfg{UseLocale} ) {
19 require locale;
20 import locale();
21 }
22197µs14µs}
# spent 4µs making 1 call to Foswiki::Query::OP_uc::BEGIN@17
23
24
# spent 72µs (37+35) within Foswiki::Query::OP_uc::new which was called 3 times, avg 24µs/call: # 3 times (37µs+35µs) by Foswiki::Query::Parser::new at line 112 of /var/www/foswikidev/core/lib/Foswiki/Query/Parser.pm, avg 24µs/call
sub new {
2532µs my $class = shift;
26
27332µs335µs return $class->SUPER::new( name => 'uc', prec => 1000, casematters => 0 );
# spent 35µs making 3 calls to Foswiki::Query::UnaryOP::new, avg 12µs/call
28}
29
30sub evaluate {
31 my $this = shift;
32 my $node = shift;
33
34 return $this->evalUnary(
35 $node,
36 sub {
37 my $arg = shift;
38 defined $arg ? uc($arg) : undef;
39 },
40 @_
41 );
42}
43
4413µs1;
45__END__