Filename | /var/www/foswikidev/core/lib/Foswiki/Plugins/FindElsewherePlugin.pm |
Statements | Executed 16 statements in 272µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 1.95ms | 2.30ms | initPlugin | Foswiki::Plugins::FindElsewherePlugin::
1 | 1 | 1 | 19µs | 32µs | BEGIN@6 | Foswiki::Plugins::FindElsewherePlugin::
1 | 1 | 1 | 9µs | 13µs | BEGIN@7 | Foswiki::Plugins::FindElsewherePlugin::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # See bottom of file for license and copyright details | ||||
2 | # This is the FindElsewhere Foswiki plugin, | ||||
3 | # see http://foswiki.org/Extensions/FindElsewherePlugin for details. | ||||
4 | package Foswiki::Plugins::FindElsewherePlugin; | ||||
5 | |||||
6 | 2 | 30µs | 2 | 46µs | # spent 32µs (19+13) within Foswiki::Plugins::FindElsewherePlugin::BEGIN@6 which was called:
# once (19µs+13µs) by Foswiki::Plugin::BEGIN@2.16 at line 6 # spent 32µs making 1 call to Foswiki::Plugins::FindElsewherePlugin::BEGIN@6
# spent 13µs making 1 call to strict::import |
7 | 2 | 139µs | 2 | 18µs | # spent 13µs (9+4) within Foswiki::Plugins::FindElsewherePlugin::BEGIN@7 which was called:
# once (9µs+4µs) by Foswiki::Plugin::BEGIN@2.16 at line 7 # spent 13µs making 1 call to Foswiki::Plugins::FindElsewherePlugin::BEGIN@7
# spent 4µs making 1 call to warnings::import |
8 | |||||
9 | 1 | 400ns | our $NO_PREFS_IN_TOPIC = 1; | ||
10 | 1 | 600ns | our $VERSION = '2.5'; | ||
11 | 1 | 100ns | our $RELEASE = '2.5'; | ||
12 | 1 | 200ns | our $SHORTDESCRIPTION = | ||
13 | "Automatically link to another web(s) if a topic isn't found in the current web."; | ||||
14 | |||||
15 | # spent 2.30ms (1.95+346µs) within Foswiki::Plugins::FindElsewherePlugin::initPlugin which was called:
# once (1.95ms+346µs) by Foswiki::Plugin::__ANON__[/var/www/foswikidev/core/lib/Foswiki/Plugin.pm:257] at line 250 of /var/www/foswikidev/core/lib/Foswiki/Plugin.pm | ||||
16 | |||||
17 | #my( $topic, $web, $user, $installWeb ) = @_; | ||||
18 | |||||
19 | 1 | 2µs | 1 | 29µs | my $disabled = Foswiki::Func::getPreferencesFlag("DISABLELOOKELSEWHERE"); # spent 29µs making 1 call to Foswiki::Func::getPreferencesFlag |
20 | 1 | 600ns | unless ( defined($disabled) ) { | ||
21 | |||||
22 | # Compatibility, deprecated | ||||
23 | $disabled = | ||||
24 | Foswiki::Func::getPluginPreferencesFlag("DISABLELOOKELSEWHERE"); | ||||
25 | } | ||||
26 | 1 | 200ns | return 0 if $disabled; | ||
27 | |||||
28 | 1 | 84µs | require Foswiki::Plugins::FindElsewherePlugin::Core; | ||
29 | 1 | 3µs | 1 | 229µs | Foswiki::Plugins::FindElsewherePlugin::Core::initPlugin(@_); # spent 229µs making 1 call to Foswiki::Plugins::FindElsewherePlugin::Core::initPlugin |
30 | |||||
31 | # Alias the handler to the one in the core package | ||||
32 | 1 | 2µs | *Foswiki::Plugins::FindElsewherePlugin::preRenderingHandler = | ||
33 | \&Foswiki::Plugins::FindElsewherePlugin::Core::preRenderingHandler; | ||||
34 | |||||
35 | 1 | 7µs | return 1; | ||
36 | } | ||||
37 | |||||
38 | 1 | 3µs | 1; | ||
39 | __END__ |