Filename | /usr/local/src/github.com/foswiki/core/lib/Foswiki/Macros/WIKIUSERNAME.pm |
Statements | Executed 18 statements in 428µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
4 | 1 | 1 | 114µs | 1.53ms | WIKIUSERNAME | Foswiki::
1 | 1 | 1 | 41µs | 55µs | BEGIN@4.33 | Foswiki::
1 | 1 | 1 | 26µs | 62µs | BEGIN@5.34 | 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 | 63µs | 2 | 69µs | # spent 55µs (41+14) within Foswiki::BEGIN@4.33 which was called:
# once (41µs+14µs) by Foswiki::_expandMacroOnTopicRendering at line 4 # spent 55µs making 1 call to Foswiki::BEGIN@4.33
# spent 14µs making 1 call to strict::import |
5 | 2 | 171µs | 2 | 97µs | # spent 62µs (26+35) within Foswiki::BEGIN@5.34 which was called:
# once (26µs+35µs) by Foswiki::_expandMacroOnTopicRendering at line 5 # spent 62µs making 1 call to Foswiki::BEGIN@5.34
# spent 35µs making 1 call to warnings::import |
6 | 1 | 89µs | require Foswiki::Macros::USERINFO; | ||
7 | |||||
8 | # DEPRECATED, now implemented using %USERINFO% | ||||
9 | # spent 1.53ms (114µs+1.42) within Foswiki::WIKIUSERNAME which was called 4 times, avg 384µs/call:
# 4 times (114µs+1.42ms) by Foswiki::_expandMacroOnTopicRendering at line 3066 of /usr/local/src/github.com/foswiki/core/lib/Foswiki.pm, avg 384µs/call | ||||
10 | 4 | 9µs | my ( $this, $params ) = @_; | ||
11 | |||||
12 | 4 | 37µs | 4 | 274µs | $params->{format} = $this->{prefs}->getPreference('WIKIUSERNAME') # spent 274µs making 4 calls to Foswiki::Prefs::getPreference, avg 69µs/call |
13 | || '$wikiusername'; | ||||
14 | |||||
15 | 4 | 56µs | 4 | 1.15ms | return $this->USERINFO($params); # spent 1.15ms making 4 calls to Foswiki::USERINFO, avg 286µs/call |
16 | } | ||||
17 | |||||
18 | 1 | 3µs | 1; | ||
19 | __END__ |