← Index
NYTProf Performance Profile   « line view »
For ./view
  Run on Fri Jul 31 18:42:36 2015
Reported on Fri Jul 31 18:48:16 2015

Filename/var/www/foswikidev/core/lib/Foswiki/Macros/USERNAME.pm
StatementsExecuted 13 statements in 162µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
21117µs123µsFoswiki::::USERNAMEFoswiki::USERNAME
11116µs29µsFoswiki::::BEGIN@4.113Foswiki::BEGIN@4.113
11110µs14µsFoswiki::::BEGIN@5.114Foswiki::BEGIN@5.114
1114µs4µsFoswiki::::BEGIN@8.115Foswiki::BEGIN@8.115
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# See bottom of file for license and copyright information
2package Foswiki;
3
4228µs242µs
# spent 29µs (16+13) within Foswiki::BEGIN@4.113 which was called: # once (16µs+13µs) by Foswiki::_expandMacroOnTopicRendering at line 4
use strict;
# spent 29µs making 1 call to Foswiki::BEGIN@4.113 # spent 13µs making 1 call to strict::import
5250µs218µs
# spent 14µs (10+4) within Foswiki::BEGIN@5.114 which was called: # once (10µs+4µs) by Foswiki::_expandMacroOnTopicRendering at line 5
use warnings;
# spent 14µs making 1 call to Foswiki::BEGIN@5.114 # spent 4µs making 1 call to warnings::import
61400nsrequire Foswiki::Macros::USERINFO;
7
8
# spent 4µs within Foswiki::BEGIN@8.115 which was called: # once (4µs+0s) by Foswiki::_expandMacroOnTopicRendering at line 13
BEGIN {
915µs if ( $Foswiki::cfg{UseLocale} ) {
10 require locale;
11 import locale();
12 }
13162µs14µs}
# spent 4µs making 1 call to Foswiki::BEGIN@8.115
14
15# DEPRECATED functionality, now implemented using %USERINFO%
16# move to compatibility plugin in Foswiki 2.0
17
# spent 123µs (17+106) within Foswiki::USERNAME which was called 2 times, avg 61µs/call: # 2 times (17µs+106µs) by Foswiki::_expandMacroOnTopicRendering at line 3435 of /var/www/foswikidev/core/lib/Foswiki.pm, avg 61µs/call
sub USERNAME {
1821µs my ( $this, $params ) = @_;
19
2025µs235µs $params->{format} = $this->{prefs}->getPreference('USERNAME')
# spent 35µs making 2 calls to Foswiki::Prefs::getPreference, avg 17µs/call
21 || '$username';
22
2327µs271µs return $this->USERINFO($params);
# spent 71µs making 2 calls to Foswiki::USERINFO, avg 35µs/call
24}
25
2612µs1;
27__END__