Filename | /var/www/foswikidev/core/lib/Foswiki/Macros/PUBURL.pm |
Statements | Executed 335 statements in 423µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
47 | 2 | 2 | 228µs | 896µs | PUBURL | Foswiki::
1 | 1 | 1 | 13µs | 24µs | BEGIN@4.50 | Foswiki::
1 | 1 | 1 | 8µs | 12µs | BEGIN@5.51 | Foswiki::
1 | 1 | 1 | 4µs | 4µs | BEGIN@7 | Foswiki::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # See bottom of file for license and copyright information | ||||
2 | package Foswiki; | ||||
3 | |||||
4 | 2 | 25µs | 2 | 36µs | # spent 24µs (13+11) within Foswiki::BEGIN@4.50 which was called:
# once (13µs+11µs) by Foswiki::BEGIN@6 at line 4 # spent 24µs making 1 call to Foswiki::BEGIN@4.50
# spent 11µs making 1 call to strict::import |
5 | 2 | 46µs | 2 | 15µs | # spent 12µs (8+4) within Foswiki::BEGIN@5.51 which was called:
# once (8µs+4µs) by Foswiki::BEGIN@6 at line 5 # spent 12µs making 1 call to Foswiki::BEGIN@5.51
# spent 4µs making 1 call to warnings::import |
6 | |||||
7 | # spent 4µs within Foswiki::BEGIN@7 which was called:
# once (4µs+0s) by Foswiki::BEGIN@6 at line 12 | ||||
8 | 1 | 4µs | if ( $Foswiki::cfg{UseLocale} ) { | ||
9 | require locale; | ||||
10 | import locale(); | ||||
11 | } | ||||
12 | 1 | 125µs | 1 | 4µs | } # spent 4µs making 1 call to Foswiki::BEGIN@7 |
13 | |||||
14 | # spent 896µs (228+668) within Foswiki::PUBURL which was called 47 times, avg 19µs/call:
# 45 times (217µs+646µs) by Foswiki::PUBURLPATH at line 10 of /var/www/foswikidev/core/lib/Foswiki/Macros/PUBURLPATH.pm, avg 19µs/call
# 2 times (11µs+22µs) by Foswiki::_expandMacroOnTopicRendering at line 3435 of /var/www/foswikidev/core/lib/Foswiki.pm, avg 16µs/call | ||||
15 | 47 | 20µs | my ( $this, $params, $topicObject, $relative ) = @_; | ||
16 | 47 | 10µs | my ( $web, $topic, $attachment ); | ||
17 | 47 | 15µs | $web = $params->{web}; | ||
18 | 47 | 9µs | if ( defined $params->{topic} ) { | ||
19 | my @path = split( /[\/.]+/, $params->{topic} ); | ||||
20 | $topic = pop(@path) if scalar(@path); | ||||
21 | $web = join( '/', @path ) if scalar(@path); # web= is ignored | ||||
22 | } | ||||
23 | 47 | 7µs | $attachment = $params->{_DEFAULT}; | ||
24 | 47 | 6µs | $params->{absolute} = 1 unless $relative; | ||
25 | 47 | 153µs | 47 | 668µs | return $this->getPubURL( $web, $topic, $attachment, %{$params} ); # spent 668µs making 47 calls to Foswiki::getPubURL, avg 14µs/call |
26 | } | ||||
27 | |||||
28 | 1 | 2µs | 1; | ||
29 | __END__ |