Filename | /usr/local/src/github.com/foswiki/core/lib/Foswiki/Macros/REVARG.pm |
Statements | Executed 12 statements in 263µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 42µs | 54µs | BEGIN@4.46 | Foswiki::
1 | 1 | 1 | 27µs | 61µs | BEGIN@5.47 | Foswiki::
1 | 1 | 1 | 25µs | 77µs | REVARG | Foswiki::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # See bottom of file for license and copyright information | ||||
2 | package Foswiki; | ||||
3 | |||||
4 | 2 | 62µs | 2 | 67µs | # spent 54µs (42+13) within Foswiki::BEGIN@4.46 which was called:
# once (42µs+13µs) by Foswiki::_expandMacroOnTopicRendering at line 4 # spent 54µs making 1 call to Foswiki::BEGIN@4.46
# spent 13µs making 1 call to strict::import |
5 | 2 | 175µs | 2 | 95µs | # spent 61µs (27+34) within Foswiki::BEGIN@5.47 which was called:
# once (27µs+34µs) by Foswiki::_expandMacroOnTopicRendering at line 5 # spent 61µs making 1 call to Foswiki::BEGIN@5.47
# spent 34µs making 1 call to warnings::import |
6 | |||||
7 | # spent 77µs (25+52) within Foswiki::REVARG which was called:
# once (25µs+52µs) by Foswiki::_expandMacroOnTopicRendering at line 3066 of /usr/local/src/github.com/foswiki/core/lib/Foswiki.pm | ||||
8 | 7 | 21µs | my ( $this, $params ) = @_; | ||
9 | my $request = $this->{request}; | ||||
10 | my $out = ''; | ||||
11 | if ($request) { | ||||
12 | 1 | 52µs | my $rev = $request->param('rev'); # spent 52µs making 1 call to Foswiki::Request::param | ||
13 | $out = '&rev=' . $rev if ($rev); | ||||
14 | } | ||||
15 | return $out; | ||||
16 | } | ||||
17 | |||||
18 | 1 | 5µs | 1; | ||
19 | __END__ |