Filename | /var/www/foswiki11/lib/Foswiki/Macros/WIKIUSERNAME.pm |
Statements | Executed 12 statements in 447µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 46µs | 89µs | BEGIN@4.66 | Foswiki::
2 | 1 | 1 | 36µs | 337µs | WIKIUSERNAME | Foswiki::
1 | 1 | 1 | 34µs | 50µs | BEGIN@5.67 | 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 | 85µs | 2 | 132µs | # spent 89µs (46+43) within Foswiki::BEGIN@4.66 which was called:
# once (46µs+43µs) by Foswiki::_expandMacroOnTopicRendering at line 4 # spent 89µs making 1 call to Foswiki::BEGIN@4.66
# spent 43µs making 1 call to strict::import |
5 | 2 | 211µs | 2 | 65µs | # spent 50µs (34+15) within Foswiki::BEGIN@5.67 which was called:
# once (34µs+15µs) by Foswiki::_expandMacroOnTopicRendering at line 5 # spent 50µs making 1 call to Foswiki::BEGIN@5.67
# spent 15µs making 1 call to warnings::import |
6 | 1 | 125µs | require Foswiki::Macros::USERINFO; | ||
7 | |||||
8 | # DEPRECATED, now implemented using %USERINFO% | ||||
9 | # spent 337µs (36+301) within Foswiki::WIKIUSERNAME which was called 2 times, avg 168µs/call:
# 2 times (36µs+301µs) by Foswiki::_expandMacroOnTopicRendering at line 3160 of /var/www/foswiki11/lib/Foswiki.pm, avg 168µs/call | ||||
10 | 2 | 2µs | my ( $this, $params ) = @_; | ||
11 | |||||
12 | 2 | 8µs | 2 | 56µs | $params->{format} = $this->{prefs}->getPreference('WIKIUSERNAME') # spent 56µs making 2 calls to Foswiki::Prefs::getPreference, avg 28µs/call |
13 | || '$wikiusername'; | ||||
14 | |||||
15 | 2 | 13µs | 2 | 244µs | return $this->USERINFO($params); # spent 244µs making 2 calls to Foswiki::USERINFO, avg 122µs/call |
16 | } | ||||
17 | |||||
18 | 1 | 2µs | 1; | ||
19 | __END__ |