← 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/WIKIUSERNAME.pm
StatementsExecuted 13 statements in 232µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11119µs33µsFoswiki::::BEGIN@4.100Foswiki::BEGIN@4.100
21118µs160µsFoswiki::::WIKIUSERNAMEFoswiki::WIKIUSERNAME
11110µs14µsFoswiki::::BEGIN@5.101Foswiki::BEGIN@5.101
1115µs5µsFoswiki::::BEGIN@8.102Foswiki::BEGIN@8.102
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
4229µs246µs
# spent 33µs (19+13) within Foswiki::BEGIN@4.100 which was called: # once (19µs+13µs) by Foswiki::_expandMacroOnTopicRendering at line 4
use strict;
# spent 33µs making 1 call to Foswiki::BEGIN@4.100 # spent 13µs making 1 call to strict::import
5264µs218µs
# spent 14µs (10+4) within Foswiki::BEGIN@5.101 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.101 # spent 4µs making 1 call to warnings::import
6157µsrequire Foswiki::Macros::USERINFO;
7
8
# spent 5µs within Foswiki::BEGIN@8.102 which was called: # once (5µs+0s) by Foswiki::_expandMacroOnTopicRendering at line 13
BEGIN {
915µs if ( $Foswiki::cfg{UseLocale} ) {
10 require locale;
11 import locale();
12 }
13163µs15µs}
# spent 5µs making 1 call to Foswiki::BEGIN@8.102
14
15# DEPRECATED, now implemented using %USERINFO%
16
# spent 160µs (18+142) within Foswiki::WIKIUSERNAME which was called 2 times, avg 80µs/call: # 2 times (18µs+142µs) by Foswiki::_expandMacroOnTopicRendering at line 3435 of /var/www/foswikidev/core/lib/Foswiki.pm, avg 80µs/call
sub WIKIUSERNAME {
1721µs my ( $this, $params ) = @_;
18
1924µs235µs $params->{format} = $this->{prefs}->getPreference('WIKIUSERNAME')
# spent 35µs making 2 calls to Foswiki::Prefs::getPreference, avg 17µs/call
20 || '$wikiusername';
21
2227µs2107µs return $this->USERINFO($params);
# spent 107µs making 2 calls to Foswiki::USERINFO, avg 54µs/call
23}
24
2511µs1;
26__END__