← 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:27:00 2011

Filename/usr/local/src/github.com/foswiki/core/lib/Foswiki/Macros/USERNAME.pm
StatementsExecuted 9 statements in 212µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11128µs36µsFoswiki::::BEGIN@4.63Foswiki::BEGIN@4.63
11122µs308µsFoswiki::::USERNAMEFoswiki::USERNAME
11119µs39µsFoswiki::::BEGIN@5.64Foswiki::BEGIN@5.64
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µs244µs
# spent 36µs (28+8) within Foswiki::BEGIN@4.63 which was called: # once (28µs+8µs) by Foswiki::_expandMacroOnTopicRendering at line 4
use strict;
# spent 36µs making 1 call to Foswiki::BEGIN@4.63 # spent 8µs making 1 call to strict::import
52132µs258µs
# spent 39µs (19+19) within Foswiki::BEGIN@5.64 which was called: # once (19µs+19µs) by Foswiki::_expandMacroOnTopicRendering at line 5
use warnings;
# spent 39µs making 1 call to Foswiki::BEGIN@5.64 # spent 19µs making 1 call to warnings::import
612µsrequire Foswiki::Macros::USERINFO;
7
8# DEPRECATED functionality, now implemented using %USERINFO%
9# move to compatibility plugin in Foswiki 2.0
10
# spent 308µs (22+286) within Foswiki::USERNAME which was called: # once (22µs+286µs) by Foswiki::_expandMacroOnTopicRendering at line 3066 of /usr/local/src/github.com/foswiki/core/lib/Foswiki.pm
sub USERNAME {
11325µs my ( $this, $params ) = @_;
12
13160µs $params->{format} = $this->{prefs}->getPreference('USERNAME')
# spent 60µs making 1 call to Foswiki::Prefs::getPreference
14 || '$username';
15
161226µs return $this->USERINFO($params);
# spent 226µs making 1 call to Foswiki::USERINFO
17}
18
1915µs1;
20__END__