← 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/WIKIUSERNAME.pm
StatementsExecuted 12 statements in 447µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11146µs89µsFoswiki::::BEGIN@4.66Foswiki::BEGIN@4.66
21136µs337µsFoswiki::::WIKIUSERNAMEFoswiki::WIKIUSERNAME
11134µs50µsFoswiki::::BEGIN@5.67Foswiki::BEGIN@5.67
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
4285µs2132µs
# spent 89µs (46+43) within Foswiki::BEGIN@4.66 which was called: # once (46µs+43µs) by Foswiki::_expandMacroOnTopicRendering at line 4
use strict;
# spent 89µs making 1 call to Foswiki::BEGIN@4.66 # spent 43µs making 1 call to strict::import
52211µs265µs
# spent 50µs (34+15) within Foswiki::BEGIN@5.67 which was called: # once (34µs+15µs) by Foswiki::_expandMacroOnTopicRendering at line 5
use warnings;
# spent 50µs making 1 call to Foswiki::BEGIN@5.67 # spent 15µs making 1 call to warnings::import
61125µsrequire Foswiki::Macros::USERINFO;
7
8# DEPRECATED, now implemented using %USERINFO%
9
# spent 337µs (36+301) within Foswiki::WIKIUSERNAME which was called 2 times, avg 168µs/call: # 2 times (36µs+301µs) by Foswiki::_expandMacroOnTopicRendering at line 3160 of /var/www/foswiki11/lib/Foswiki.pm, avg 168µs/call
sub WIKIUSERNAME {
1022µs my ( $this, $params ) = @_;
11
1228µs256µs $params->{format} = $this->{prefs}->getPreference('WIKIUSERNAME')
# spent 56µs making 2 calls to Foswiki::Prefs::getPreference, avg 28µs/call
13 || '$wikiusername';
14
15213µs2244µs return $this->USERINFO($params);
# spent 244µs making 2 calls to Foswiki::USERINFO, avg 122µs/call
16}
17
1812µs1;
19__END__