← 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_lc.pm
StatementsExecuted 15 statements in 253µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
31134µs96µsFoswiki::Query::OP_lc::::newFoswiki::Query::OP_lc::new
11112µs25µsFoswiki::Query::OP_lc::::BEGIN@11Foswiki::Query::OP_lc::BEGIN@11
11110µs14µsFoswiki::Query::OP_lc::::BEGIN@12Foswiki::Query::OP_lc::BEGIN@12
1114µs4µsFoswiki::Query::OP_lc::::BEGIN@17Foswiki::Query::OP_lc::BEGIN@17
1113µs3µsFoswiki::Query::OP_lc::::BEGIN@14Foswiki::Query::OP_lc::BEGIN@14
0000s0sFoswiki::Query::OP_lc::::__ANON__[:39]Foswiki::Query::OP_lc::__ANON__[:39]
0000s0sFoswiki::Query::OP_lc::::evaluateFoswiki::Query::OP_lc::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_lc
6
7=cut
8
9package Foswiki::Query::OP_lc;
10
11227µs238µs
# spent 25µs (12+13) within Foswiki::Query::OP_lc::BEGIN@11 which was called: # once (12µs+13µs) by Foswiki::Query::Parser::BEGIN@63 at line 11
use strict;
# spent 25µs making 1 call to Foswiki::Query::OP_lc::BEGIN@11 # spent 13µs making 1 call to strict::import
12223µs218µs
# spent 14µs (10+4) within Foswiki::Query::OP_lc::BEGIN@12 which was called: # once (10µs+4µs) by Foswiki::Query::Parser::BEGIN@63 at line 12
use warnings;
# spent 14µs making 1 call to Foswiki::Query::OP_lc::BEGIN@12 # spent 4µs making 1 call to warnings::import
13
14253µs13µs
# spent 3µs within Foswiki::Query::OP_lc::BEGIN@14 which was called: # once (3µs+0s) by Foswiki::Query::Parser::BEGIN@63 at line 14
use Foswiki::Query::UnaryOP ();
# spent 3µs making 1 call to Foswiki::Query::OP_lc::BEGIN@14
1517µsour @ISA = ('Foswiki::Query::UnaryOP');
16
17
# spent 4µs within Foswiki::Query::OP_lc::BEGIN@17 which was called: # once (4µs+0s) by Foswiki::Query::Parser::BEGIN@63 at line 22
BEGIN {
1815µs if ( $Foswiki::cfg{UseLocale} ) {
19 require locale;
20 import locale();
21 }
221102µs14µs}
# spent 4µs making 1 call to Foswiki::Query::OP_lc::BEGIN@17
23
24
# spent 96µs (34+62) within Foswiki::Query::OP_lc::new which was called 3 times, avg 32µs/call: # 3 times (34µs+62µs) by Foswiki::Query::Parser::new at line 112 of /var/www/foswikidev/core/lib/Foswiki/Query/Parser.pm, avg 32µs/call
sub new {
2531µs my $class = shift;
26
27333µs362µs return $class->SUPER::new( name => 'lc', prec => 1000, casematters => 1 );
# spent 62µs making 3 calls to Foswiki::Query::UnaryOP::new, avg 21µ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 ? lc($arg) : undef;
39 },
40 @_
41 );
42}
43
4413µs1;
45__END__