← 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_lc.pm
StatementsExecuted 14 statements in 406µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111519µs646µsFoswiki::Query::OP_lc::::BEGIN@14Foswiki::Query::OP_lc::BEGIN@14
31152µs125µsFoswiki::Query::OP_lc::::newFoswiki::Query::OP_lc::new
11122µs42µsFoswiki::Query::OP_lc::::BEGIN@11Foswiki::Query::OP_lc::BEGIN@11
11113µs21µsFoswiki::Query::OP_lc::::BEGIN@12Foswiki::Query::OP_lc::BEGIN@12
0000s0sFoswiki::Query::OP_lc::::__ANON__[:31]Foswiki::Query::OP_lc::__ANON__[:31]
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
11240µs261µs
# spent 42µs (22+19) within Foswiki::Query::OP_lc::BEGIN@11 which was called: # once (22µs+19µs) by Foswiki::Query::Parser::new at line 11
use strict;
# spent 42µs making 1 call to Foswiki::Query::OP_lc::BEGIN@11 # spent 19µs making 1 call to strict::import
12243µs228µs
# spent 21µs (13+8) within Foswiki::Query::OP_lc::BEGIN@12 which was called: # once (13µs+8µs) by Foswiki::Query::Parser::new at line 12
use warnings;
# spent 21µs making 1 call to Foswiki::Query::OP_lc::BEGIN@12 # spent 8µs making 1 call to warnings::import
13
142261µs1646µs
# spent 646µs (519+127) within Foswiki::Query::OP_lc::BEGIN@14 which was called: # once (519µs+127µs) by Foswiki::Query::Parser::new at line 14
use Foswiki::Query::UnaryOP ();
# spent 646µs making 1 call to Foswiki::Query::OP_lc::BEGIN@14
1519µsour @ISA = ('Foswiki::Query::UnaryOP');
16
17
# spent 125µs (52+73) within Foswiki::Query::OP_lc::new which was called 3 times, avg 42µs/call: # 3 times (52µs+73µs) by Foswiki::Query::Parser::new at line 47 of /var/www/foswiki11/lib/Foswiki/Query/Parser.pm, avg 42µs/call
sub new {
1833µs my $class = shift;
19
20346µs373µs return $class->SUPER::new(
# spent 73µs making 3 calls to Foswiki::Query::UnaryOP::new, avg 24µs/call
21 name => 'lc',
22 prec => 600,
23 casematters => 1
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 ? lc($arg) : undef }, @_ );
32}
33
3414µs1;
35__END__