Filename | /var/www/foswikidev/core/lib/Foswiki/Query/OP_lc.pm |
Statements | Executed 15 statements in 253µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
3 | 1 | 1 | 34µs | 96µs | new | Foswiki::Query::OP_lc::
1 | 1 | 1 | 12µs | 25µs | BEGIN@11 | Foswiki::Query::OP_lc::
1 | 1 | 1 | 10µs | 14µs | BEGIN@12 | Foswiki::Query::OP_lc::
1 | 1 | 1 | 4µs | 4µs | BEGIN@17 | Foswiki::Query::OP_lc::
1 | 1 | 1 | 3µs | 3µs | BEGIN@14 | Foswiki::Query::OP_lc::
0 | 0 | 0 | 0s | 0s | __ANON__[:39] | 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 | 27µs | 2 | 38µ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 # spent 25µs making 1 call to Foswiki::Query::OP_lc::BEGIN@11
# spent 13µs making 1 call to strict::import |
12 | 2 | 23µs | 2 | 18µ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 # spent 14µs making 1 call to Foswiki::Query::OP_lc::BEGIN@12
# spent 4µs making 1 call to warnings::import |
13 | |||||
14 | 2 | 53µs | 1 | 3µ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 # spent 3µs making 1 call to Foswiki::Query::OP_lc::BEGIN@14 |
15 | 1 | 7µs | our @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 | ||||
18 | 1 | 5µs | if ( $Foswiki::cfg{UseLocale} ) { | ||
19 | require locale; | ||||
20 | import locale(); | ||||
21 | } | ||||
22 | 1 | 102µs | 1 | 4µ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 | ||||
25 | 3 | 1µs | my $class = shift; | ||
26 | |||||
27 | 3 | 33µs | 3 | 62µ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 | |||||
30 | sub 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 | |||||
44 | 1 | 3µs | 1; | ||
45 | __END__ |