Filename | /var/www/foswiki11/lib/Foswiki/Query/OP_uc.pm |
Statements | Executed 14 statements in 307µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
3 | 1 | 1 | 46µs | 95µs | new | Foswiki::Query::OP_uc::
1 | 1 | 1 | 28µs | 46µs | BEGIN@11 | Foswiki::Query::OP_uc::
1 | 1 | 1 | 14µs | 21µs | BEGIN@12 | Foswiki::Query::OP_uc::
1 | 1 | 1 | 7µs | 7µs | BEGIN@14 | Foswiki::Query::OP_uc::
0 | 0 | 0 | 0s | 0s | __ANON__[:31] | 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 | 40µs | 2 | 65µs | # spent 46µs (28+18) within Foswiki::Query::OP_uc::BEGIN@11 which was called:
# once (28µs+18µs) by Foswiki::Query::Parser::new at line 11 # spent 46µs making 1 call to Foswiki::Query::OP_uc::BEGIN@11
# spent 18µs making 1 call to strict::import |
12 | 2 | 41µs | 2 | 28µs | # spent 21µs (14+7) within Foswiki::Query::OP_uc::BEGIN@12 which was called:
# once (14µs+7µs) by Foswiki::Query::Parser::new at line 12 # spent 21µs making 1 call to Foswiki::Query::OP_uc::BEGIN@12
# spent 7µs making 1 call to warnings::import |
13 | |||||
14 | 2 | 167µs | 1 | 7µs | # spent 7µs within Foswiki::Query::OP_uc::BEGIN@14 which was called:
# once (7µs+0s) by Foswiki::Query::Parser::new at line 14 # spent 7µs making 1 call to Foswiki::Query::OP_uc::BEGIN@14 |
15 | 1 | 11µs | our @ISA = ('Foswiki::Query::UnaryOP'); | ||
16 | |||||
17 | # spent 95µs (46+49) within Foswiki::Query::OP_uc::new which was called 3 times, avg 32µs/call:
# 3 times (46µs+49µs) by Foswiki::Query::Parser::new at line 47 of /var/www/foswiki11/lib/Foswiki/Query/Parser.pm, avg 32µs/call | ||||
18 | 3 | 2µs | my $class = shift; | ||
19 | |||||
20 | 3 | 42µs | 3 | 49µs | return $class->SUPER::new( # spent 49µs making 3 calls to Foswiki::Query::UnaryOP::new, avg 16µs/call |
21 | name => 'uc', | ||||
22 | prec => 600, | ||||
23 | casematters => 0 | ||||
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 ? uc($arg) : undef }, @_ ); | ||||
32 | } | ||||
33 | |||||
34 | 1 | 4µs | 1; | ||
35 | __END__ |