Filename | /usr/local/src/github.com/foswiki/core/lib/Foswiki/Macros/WIKINAME.pm |
Statements | Executed 16 statements in 281µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
3 | 1 | 1 | 66µs | 751µs | WIKINAME | Foswiki::
1 | 1 | 1 | 27µs | 35µs | BEGIN@4.37 | Foswiki::
1 | 1 | 1 | 23µs | 23µs | BEGIN@6.39 | Foswiki::
1 | 1 | 1 | 22µs | 41µs | BEGIN@5.38 | 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 | 50µs | 2 | 42µs | # spent 35µs (27+7) within Foswiki::BEGIN@4.37 which was called:
# once (27µs+7µs) by Foswiki::_expandMacroOnTopicRendering at line 4 # spent 35µs making 1 call to Foswiki::BEGIN@4.37
# spent 8µs making 1 call to strict::import |
5 | 2 | 48µs | 2 | 60µs | # spent 41µs (22+19) within Foswiki::BEGIN@5.38 which was called:
# once (22µs+19µs) by Foswiki::_expandMacroOnTopicRendering at line 5 # spent 41µs making 1 call to Foswiki::BEGIN@5.38
# spent 19µs making 1 call to warnings::import |
6 | 2 | 125µs | 1 | 23µs | # spent 23µs within Foswiki::BEGIN@6.39 which was called:
# once (23µs+0s) by Foswiki::_expandMacroOnTopicRendering at line 6 # spent 23µs making 1 call to Foswiki::BEGIN@6.39 |
7 | |||||
8 | # DEPRECATED, now implemented using %USERINFO% | ||||
9 | # spent 751µs (66+685) within Foswiki::WIKINAME which was called 3 times, avg 250µs/call:
# 3 times (66µs+685µs) by Foswiki::_expandMacroOnTopicRendering at line 3066 of /usr/local/src/github.com/foswiki/core/lib/Foswiki.pm, avg 250µs/call | ||||
10 | 3 | 7µs | my ( $this, $params ) = @_; | ||
11 | |||||
12 | 3 | 20µs | 3 | 174µs | $params->{format} = $this->{prefs}->getPreference('WIKINAME') # spent 174µs making 3 calls to Foswiki::Prefs::getPreference, avg 58µs/call |
13 | || '$wikiname'; | ||||
14 | |||||
15 | 3 | 28µs | 3 | 510µs | return $this->USERINFO($params); # spent 510µs making 3 calls to Foswiki::USERINFO, avg 170µs/call |
16 | } | ||||
17 | |||||
18 | 1 | 4µs | 1; | ||
19 | __END__ |