Filename | /var/www/foswiki11/lib/Foswiki/Query/OP_lc.pm |
Statements | Executed 14 statements in 406µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 519µs | 646µs | BEGIN@14 | Foswiki::Query::OP_lc::
3 | 1 | 1 | 52µs | 125µs | new | Foswiki::Query::OP_lc::
1 | 1 | 1 | 22µs | 42µs | BEGIN@11 | Foswiki::Query::OP_lc::
1 | 1 | 1 | 13µs | 21µs | BEGIN@12 | Foswiki::Query::OP_lc::
0 | 0 | 0 | 0s | 0s | __ANON__[:31] | Foswiki::Query::OP_lc::
0 | 0 | 0 | 0s | 0s | evaluate | Foswiki::Query::OP_lc::
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 | |||||
9 | package Foswiki::Query::OP_lc; | ||||
10 | |||||
11 | 2 | 40µs | 2 | 61µ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 # spent 42µs making 1 call to Foswiki::Query::OP_lc::BEGIN@11
# spent 19µs making 1 call to strict::import |
12 | 2 | 43µs | 2 | 28µ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 # spent 21µs making 1 call to Foswiki::Query::OP_lc::BEGIN@12
# spent 8µs making 1 call to warnings::import |
13 | |||||
14 | 2 | 261µs | 1 | 646µ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 # spent 646µs making 1 call to Foswiki::Query::OP_lc::BEGIN@14 |
15 | 1 | 9µs | our @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 | ||||
18 | 3 | 3µs | my $class = shift; | ||
19 | |||||
20 | 3 | 46µs | 3 | 73µ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 | |||||
27 | sub 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 | |||||
34 | 1 | 4µs | 1; | ||
35 | __END__ |