← Index
NYTProf Performance Profile   « block view • line view • sub view »
For /usr/local/src/github.com/foswiki/core/bin/view
  Run on Sun Dec 4 17:17:59 2011
Reported on Sun Dec 4 17:26:56 2011

Filename/usr/local/src/github.com/foswiki/core/lib/Foswiki/Macros/WIKIUSERNAME.pm
StatementsExecuted 18 statements in 428µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
411114µs1.53msFoswiki::::WIKIUSERNAMEFoswiki::WIKIUSERNAME
11141µs55µsFoswiki::::BEGIN@4.33Foswiki::BEGIN@4.33
11126µs62µsFoswiki::::BEGIN@5.34Foswiki::BEGIN@5.34
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
4263µs269µs
# spent 55µs (41+14) within Foswiki::BEGIN@4.33 which was called: # once (41µs+14µs) by Foswiki::_expandMacroOnTopicRendering at line 4
use strict;
# spent 55µs making 1 call to Foswiki::BEGIN@4.33 # spent 14µs making 1 call to strict::import
52171µs297µs
# spent 62µs (26+35) within Foswiki::BEGIN@5.34 which was called: # once (26µs+35µs) by Foswiki::_expandMacroOnTopicRendering at line 5
use warnings;
# spent 62µs making 1 call to Foswiki::BEGIN@5.34 # spent 35µs making 1 call to warnings::import
6189µsrequire Foswiki::Macros::USERINFO;
7
8# DEPRECATED, now implemented using %USERINFO%
9
# spent 1.53ms (114µs+1.42) within Foswiki::WIKIUSERNAME which was called 4 times, avg 384µs/call: # 4 times (114µs+1.42ms) by Foswiki::_expandMacroOnTopicRendering at line 3066 of /usr/local/src/github.com/foswiki/core/lib/Foswiki.pm, avg 384µs/call
sub WIKIUSERNAME {
1012102µs my ( $this, $params ) = @_;
11
124274µs $params->{format} = $this->{prefs}->getPreference('WIKIUSERNAME')
# spent 274µs making 4 calls to Foswiki::Prefs::getPreference, avg 69µs/call
13 || '$wikiusername';
14
1541.15ms return $this->USERINFO($params);
# spent 1.15ms making 4 calls to Foswiki::USERINFO, avg 286µs/call
16}
17
1813µs1;
19__END__