Filename | /var/www/foswiki11/lib/Foswiki/Macros/USERNAME.pm |
Statements | Executed 12 statements in 200µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
2 | 1 | 1 | 34µs | 222µs | USERNAME | Foswiki::
1 | 1 | 1 | 26µs | 47µs | BEGIN@4.75 | Foswiki::
1 | 1 | 1 | 17µs | 26µs | BEGIN@5.76 | 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 | 48µs | 2 | 68µs | # spent 47µs (26+21) within Foswiki::BEGIN@4.75 which was called:
# once (26µs+21µs) by Foswiki::_expandMacroOnTopicRendering at line 4 # spent 47µs making 1 call to Foswiki::BEGIN@4.75
# spent 21µs making 1 call to strict::import |
5 | 2 | 127µs | 2 | 34µs | # spent 26µs (17+9) within Foswiki::BEGIN@5.76 which was called:
# once (17µs+9µs) by Foswiki::_expandMacroOnTopicRendering at line 5 # spent 26µs making 1 call to Foswiki::BEGIN@5.76
# spent 9µs making 1 call to warnings::import |
6 | 1 | 800ns | require Foswiki::Macros::USERINFO; | ||
7 | |||||
8 | # DEPRECATED functionality, now implemented using %USERINFO% | ||||
9 | # move to compatibility plugin in Foswiki 2.0 | ||||
10 | # spent 222µs (34+189) within Foswiki::USERNAME which was called 2 times, avg 111µs/call:
# 2 times (34µs+189µs) by Foswiki::_expandMacroOnTopicRendering at line 3160 of /var/www/foswiki11/lib/Foswiki.pm, avg 111µs/call | ||||
11 | 2 | 2µs | my ( $this, $params ) = @_; | ||
12 | |||||
13 | 2 | 7µs | 2 | 50µs | $params->{format} = $this->{prefs}->getPreference('USERNAME') # spent 50µs making 2 calls to Foswiki::Prefs::getPreference, avg 25µs/call |
14 | || '$username'; | ||||
15 | |||||
16 | 2 | 11µs | 2 | 139µs | return $this->USERINFO($params); # spent 139µs making 2 calls to Foswiki::USERINFO, avg 70µs/call |
17 | } | ||||
18 | |||||
19 | 1 | 4µs | 1; | ||
20 | __END__ |