← Index
NYTProf Performance Profile   « line view »
For ./view
  Run on Fri Jul 31 19:05:14 2015
Reported on Fri Jul 31 19:08:11 2015

Filename/var/www/foswiki11/lib/Foswiki/Macros/USERNAME.pm
StatementsExecuted 12 statements in 200µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
21134µs222µsFoswiki::::USERNAMEFoswiki::USERNAME
11126µs47µsFoswiki::::BEGIN@4.75Foswiki::BEGIN@4.75
11117µs26µsFoswiki::::BEGIN@5.76Foswiki::BEGIN@5.76
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
4248µs268µ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
use strict;
# spent 47µs making 1 call to Foswiki::BEGIN@4.75 # spent 21µs making 1 call to strict::import
52127µs234µ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
use warnings;
# spent 26µs making 1 call to Foswiki::BEGIN@5.76 # spent 9µs making 1 call to warnings::import
61800nsrequire 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
sub USERNAME {
1122µs my ( $this, $params ) = @_;
12
1327µs250µs $params->{format} = $this->{prefs}->getPreference('USERNAME')
# spent 50µs making 2 calls to Foswiki::Prefs::getPreference, avg 25µs/call
14 || '$username';
15
16211µs2139µs return $this->USERINFO($params);
# spent 139µs making 2 calls to Foswiki::USERINFO, avg 70µs/call
17}
18
1914µs1;
20__END__