Filename | /var/www/foswikidev/core/lib/Foswiki/Query/OP_uc.pm |
Statements | Executed 15 statements in 248µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
3 | 1 | 1 | 37µs | 72µs | new | Foswiki::Query::OP_uc::
1 | 1 | 1 | 13µs | 25µs | BEGIN@11 | Foswiki::Query::OP_uc::
1 | 1 | 1 | 9µs | 13µs | BEGIN@12 | Foswiki::Query::OP_uc::
1 | 1 | 1 | 4µs | 4µs | BEGIN@17 | Foswiki::Query::OP_uc::
1 | 1 | 1 | 4µs | 4µs | BEGIN@14 | Foswiki::Query::OP_uc::
0 | 0 | 0 | 0s | 0s | __ANON__[:39] | Foswiki::Query::OP_uc::
0 | 0 | 0 | 0s | 0s | evaluate | Foswiki::Query::OP_uc::
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_uc | ||||
6 | |||||
7 | =cut | ||||
8 | |||||
9 | package Foswiki::Query::OP_uc; | ||||
10 | |||||
11 | 2 | 26µs | 2 | 37µs | # spent 25µs (13+12) within Foswiki::Query::OP_uc::BEGIN@11 which was called:
# once (13µs+12µs) by Foswiki::Query::Parser::BEGIN@64 at line 11 # spent 25µs making 1 call to Foswiki::Query::OP_uc::BEGIN@11
# spent 12µs making 1 call to strict::import |
12 | 2 | 23µs | 2 | 17µs | # spent 13µs (9+4) within Foswiki::Query::OP_uc::BEGIN@12 which was called:
# once (9µs+4µs) by Foswiki::Query::Parser::BEGIN@64 at line 12 # spent 13µs making 1 call to Foswiki::Query::OP_uc::BEGIN@12
# spent 4µs making 1 call to warnings::import |
13 | |||||
14 | 2 | 54µs | 1 | 4µs | # spent 4µs within Foswiki::Query::OP_uc::BEGIN@14 which was called:
# once (4µs+0s) by Foswiki::Query::Parser::BEGIN@64 at line 14 # spent 4µs making 1 call to Foswiki::Query::OP_uc::BEGIN@14 |
15 | 1 | 7µs | our @ISA = ('Foswiki::Query::UnaryOP'); | ||
16 | |||||
17 | # spent 4µs within Foswiki::Query::OP_uc::BEGIN@17 which was called:
# once (4µs+0s) by Foswiki::Query::Parser::BEGIN@64 at line 22 | ||||
18 | 1 | 5µs | if ( $Foswiki::cfg{UseLocale} ) { | ||
19 | require locale; | ||||
20 | import locale(); | ||||
21 | } | ||||
22 | 1 | 97µs | 1 | 4µs | } # spent 4µs making 1 call to Foswiki::Query::OP_uc::BEGIN@17 |
23 | |||||
24 | # spent 72µs (37+35) within Foswiki::Query::OP_uc::new which was called 3 times, avg 24µs/call:
# 3 times (37µs+35µs) by Foswiki::Query::Parser::new at line 112 of /var/www/foswikidev/core/lib/Foswiki/Query/Parser.pm, avg 24µs/call | ||||
25 | 3 | 2µs | my $class = shift; | ||
26 | |||||
27 | 3 | 32µs | 3 | 35µs | return $class->SUPER::new( name => 'uc', prec => 1000, casematters => 0 ); # spent 35µs making 3 calls to Foswiki::Query::UnaryOP::new, avg 12µ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 ? uc($arg) : undef; | ||||
39 | }, | ||||
40 | @_ | ||||
41 | ); | ||||
42 | } | ||||
43 | |||||
44 | 1 | 3µs | 1; | ||
45 | __END__ |