Filename | /usr/local/src/github.com/foswiki/core/lib/Foswiki/Macros/USERNAME.pm |
Statements | Executed 9 statements in 212µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 28µs | 36µs | BEGIN@4.63 | Foswiki::
1 | 1 | 1 | 22µs | 308µs | USERNAME | Foswiki::
1 | 1 | 1 | 19µs | 39µs | BEGIN@5.64 | 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 | 44µs | # spent 36µs (28+8) within Foswiki::BEGIN@4.63 which was called:
# once (28µs+8µs) by Foswiki::_expandMacroOnTopicRendering at line 4 # spent 36µs making 1 call to Foswiki::BEGIN@4.63
# spent 8µs making 1 call to strict::import |
5 | 2 | 132µs | 2 | 58µs | # spent 39µs (19+19) within Foswiki::BEGIN@5.64 which was called:
# once (19µs+19µs) by Foswiki::_expandMacroOnTopicRendering at line 5 # spent 39µs making 1 call to Foswiki::BEGIN@5.64
# spent 19µs making 1 call to warnings::import |
6 | 1 | 2µs | require Foswiki::Macros::USERINFO; | ||
7 | |||||
8 | # DEPRECATED functionality, now implemented using %USERINFO% | ||||
9 | # move to compatibility plugin in Foswiki 2.0 | ||||
10 | # spent 308µs (22+286) within Foswiki::USERNAME which was called:
# once (22µs+286µs) by Foswiki::_expandMacroOnTopicRendering at line 3066 of /usr/local/src/github.com/foswiki/core/lib/Foswiki.pm | ||||
11 | 3 | 25µs | my ( $this, $params ) = @_; | ||
12 | |||||
13 | 1 | 60µs | $params->{format} = $this->{prefs}->getPreference('USERNAME') # spent 60µs making 1 call to Foswiki::Prefs::getPreference | ||
14 | || '$username'; | ||||
15 | |||||
16 | 1 | 226µs | return $this->USERINFO($params); # spent 226µs making 1 call to Foswiki::USERINFO | ||
17 | } | ||||
18 | |||||
19 | 1 | 5µs | 1; | ||
20 | __END__ |