← 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_lc.pm
StatementsExecuted 14 statements in 398µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
31187µs222µsFoswiki::Query::OP_lc::::newFoswiki::Query::OP_lc::new
11125µs32µsFoswiki::Query::OP_lc::::BEGIN@11Foswiki::Query::OP_lc::BEGIN@11
11116µs34µsFoswiki::Query::OP_lc::::BEGIN@12Foswiki::Query::OP_lc::BEGIN@12
1119µs9µsFoswiki::Query::OP_lc::::BEGIN@14Foswiki::Query::OP_lc::BEGIN@14
0000s0sFoswiki::Query::OP_lc::::__ANON__[:32]Foswiki::Query::OP_lc::__ANON__[:32]
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
11245µs239µs
# spent 32µs (25+7) within Foswiki::Query::OP_lc::BEGIN@11 which was called: # once (25µs+7µs) by Foswiki::Query::Parser::BEGIN@56 at line 11
use strict;
# spent 32µs making 1 call to Foswiki::Query::OP_lc::BEGIN@11 # spent 7µs making 1 call to strict::import
12244µs252µs
# spent 34µs (16+18) within Foswiki::Query::OP_lc::BEGIN@12 which was called: # once (16µs+18µs) by Foswiki::Query::Parser::BEGIN@56 at line 12
use warnings;
# spent 34µs making 1 call to Foswiki::Query::OP_lc::BEGIN@12 # spent 18µs making 1 call to warnings::import
13
142206µs19µs
# spent 9µs within Foswiki::Query::OP_lc::BEGIN@14 which was called: # once (9µs+0s) by Foswiki::Query::Parser::BEGIN@56 at line 14
use Foswiki::Query::UnaryOP ();
# spent 9µs making 1 call to Foswiki::Query::OP_lc::BEGIN@14
15110µsour @ISA = ('Foswiki::Query::UnaryOP');
16
17
# spent 222µs (87+134) within Foswiki::Query::OP_lc::new which was called 3 times, avg 74µs/call: # 3 times (87µs+134µs) by Foswiki::Query::Parser::new at line 105 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Query/Parser.pm, avg 74µs/call
sub new {
1836µs my $class = shift;
19
20381µs3134µs return $class->SUPER::new( name => 'lc', prec => 1000, casematters => 1 );
# spent 134µs making 3 calls to Foswiki::Query::UnaryOP::new, avg 45µ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 ? lc($arg) : undef;
32 },
33 @_
34 );
35}
36
3716µs1;
38__END__