Filename | /var/www/foswikidev/core/lib/Foswiki/Macros/WIKIUSERNAME.pm |
Statements | Executed 13 statements in 232µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 19µs | 33µs | BEGIN@4.100 | Foswiki::
2 | 1 | 1 | 18µs | 160µs | WIKIUSERNAME | Foswiki::
1 | 1 | 1 | 10µs | 14µs | BEGIN@5.101 | Foswiki::
1 | 1 | 1 | 5µs | 5µs | BEGIN@8.102 | 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 | 29µs | 2 | 46µs | # spent 33µs (19+13) within Foswiki::BEGIN@4.100 which was called:
# once (19µs+13µs) by Foswiki::_expandMacroOnTopicRendering at line 4 # spent 33µs making 1 call to Foswiki::BEGIN@4.100
# spent 13µs making 1 call to strict::import |
5 | 2 | 64µs | 2 | 18µs | # spent 14µs (10+4) within Foswiki::BEGIN@5.101 which was called:
# once (10µs+4µs) by Foswiki::_expandMacroOnTopicRendering at line 5 # spent 14µs making 1 call to Foswiki::BEGIN@5.101
# spent 4µs making 1 call to warnings::import |
6 | 1 | 57µs | require Foswiki::Macros::USERINFO; | ||
7 | |||||
8 | # spent 5µs within Foswiki::BEGIN@8.102 which was called:
# once (5µs+0s) by Foswiki::_expandMacroOnTopicRendering at line 13 | ||||
9 | 1 | 5µs | if ( $Foswiki::cfg{UseLocale} ) { | ||
10 | require locale; | ||||
11 | import locale(); | ||||
12 | } | ||||
13 | 1 | 63µs | 1 | 5µs | } # spent 5µs making 1 call to Foswiki::BEGIN@8.102 |
14 | |||||
15 | # DEPRECATED, now implemented using %USERINFO% | ||||
16 | # spent 160µs (18+142) within Foswiki::WIKIUSERNAME which was called 2 times, avg 80µs/call:
# 2 times (18µs+142µs) by Foswiki::_expandMacroOnTopicRendering at line 3435 of /var/www/foswikidev/core/lib/Foswiki.pm, avg 80µs/call | ||||
17 | 2 | 1µs | my ( $this, $params ) = @_; | ||
18 | |||||
19 | 2 | 4µs | 2 | 35µs | $params->{format} = $this->{prefs}->getPreference('WIKIUSERNAME') # spent 35µs making 2 calls to Foswiki::Prefs::getPreference, avg 17µs/call |
20 | || '$wikiusername'; | ||||
21 | |||||
22 | 2 | 7µs | 2 | 107µs | return $this->USERINFO($params); # spent 107µs making 2 calls to Foswiki::USERINFO, avg 54µs/call |
23 | } | ||||
24 | |||||
25 | 1 | 1µs | 1; | ||
26 | __END__ |