Filename | /var/www/foswikidev/core/lib/Foswiki/Plugins/SlideShowPlugin.pm |
Statements | Executed 128 statements in 665µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
108 | 1 | 1 | 288µs | 288µs | commonTagsHandler | Foswiki::Plugins::SlideShowPlugin::
1 | 1 | 1 | 13µs | 32µs | BEGIN@4 | Foswiki::Plugins::SlideShowPlugin::
1 | 1 | 1 | 12µs | 16µs | BEGIN@5 | Foswiki::Plugins::SlideShowPlugin::
1 | 1 | 1 | 10µs | 40µs | BEGIN@7 | Foswiki::Plugins::SlideShowPlugin::
1 | 1 | 1 | 10µs | 15µs | initPlugin | Foswiki::Plugins::SlideShowPlugin::
1 | 1 | 1 | 10µs | 26µs | BEGIN@12 | Foswiki::Plugins::SlideShowPlugin::
1 | 1 | 1 | 9µs | 32µs | BEGIN@9 | Foswiki::Plugins::SlideShowPlugin::
1 | 1 | 1 | 8µs | 25µs | BEGIN@14 | Foswiki::Plugins::SlideShowPlugin::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | # See bottom of file for license and copyright information | ||||
2 | package Foswiki::Plugins::SlideShowPlugin; | ||||
3 | |||||
4 | 2 | 34µs | 2 | 51µs | # spent 32µs (13+19) within Foswiki::Plugins::SlideShowPlugin::BEGIN@4 which was called:
# once (13µs+19µs) by Foswiki::Plugin::BEGIN@2.1 at line 4 # spent 32µs making 1 call to Foswiki::Plugins::SlideShowPlugin::BEGIN@4
# spent 19µs making 1 call to strict::import |
5 | 2 | 25µs | 2 | 21µs | # spent 16µs (12+4) within Foswiki::Plugins::SlideShowPlugin::BEGIN@5 which was called:
# once (12µs+4µs) by Foswiki::Plugin::BEGIN@2.1 at line 5 # spent 16µs making 1 call to Foswiki::Plugins::SlideShowPlugin::BEGIN@5
# spent 4µs making 1 call to warnings::import |
6 | |||||
7 | 2 | 44µs | 2 | 70µs | # spent 40µs (10+30) within Foswiki::Plugins::SlideShowPlugin::BEGIN@7 which was called:
# once (10µs+30µs) by Foswiki::Plugin::BEGIN@2.1 at line 7 # spent 40µs making 1 call to Foswiki::Plugins::SlideShowPlugin::BEGIN@7
# spent 30µs making 1 call to CGI::import |
8 | |||||
9 | # spent 32µs (9+23) within Foswiki::Plugins::SlideShowPlugin::BEGIN@9 which was called:
# once (9µs+23µs) by Foswiki::Plugin::BEGIN@2.1 at line 16 | ||||
10 | # Backwards compatibility for Foswiki 1.1.x | ||||
11 | 1 | 11µs | 1 | 23µs | unless ( Foswiki::Request->can('multi_param') ) { # spent 23µs making 1 call to CGI::can |
12 | 2 | 40µs | 2 | 42µs | # spent 26µs (10+16) within Foswiki::Plugins::SlideShowPlugin::BEGIN@12 which was called:
# once (10µs+16µs) by Foswiki::Plugin::BEGIN@2.1 at line 12 # spent 26µs making 1 call to Foswiki::Plugins::SlideShowPlugin::BEGIN@12
# spent 16µs making 1 call to warnings::unimport |
13 | *Foswiki::Request::multi_param = \&Foswiki::Request::param; | ||||
14 | 2 | 24µs | 2 | 42µs | # spent 25µs (8+17) within Foswiki::Plugins::SlideShowPlugin::BEGIN@14 which was called:
# once (8µs+17µs) by Foswiki::Plugin::BEGIN@2.1 at line 14 # spent 25µs making 1 call to Foswiki::Plugins::SlideShowPlugin::BEGIN@14
# spent 17µs making 1 call to warnings::import |
15 | } | ||||
16 | 1 | 180µs | 1 | 32µs | } # spent 32µs making 1 call to Foswiki::Plugins::SlideShowPlugin::BEGIN@9 |
17 | |||||
18 | 1 | 400ns | our $VERSION = 2.21; | ||
19 | 1 | 600ns | our $RELEASE = '2.21'; | ||
20 | 1 | 200ns | our $SHORTDESCRIPTION = | ||
21 | 'Create web based presentations based on topics with headings'; | ||||
22 | 1 | 100ns | our $NO_PREFS_IN_TOPIC = 1; | ||
23 | |||||
24 | 1 | 100ns | our $core; | ||
25 | |||||
26 | # spent 15µs (10+5) within Foswiki::Plugins::SlideShowPlugin::initPlugin which was called:
# once (10µs+5µ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 | ||||
27 | |||||
28 | # check for Plugins.pm versions | ||||
29 | 1 | 11µs | 1 | 5µs | if ( $Foswiki::Plugins::VERSION < 1 ) { # spent 5µs making 1 call to version::vxs::VCMP |
30 | Foswiki::Func::writeWarning( | ||||
31 | "Version mismatch between SlideShowPlugin and Plugins.pm"); | ||||
32 | return 0; | ||||
33 | } | ||||
34 | 1 | 600ns | $core = undef; | ||
35 | |||||
36 | 1 | 4µs | return 1; | ||
37 | } | ||||
38 | |||||
39 | # spent 288µs within Foswiki::Plugins::SlideShowPlugin::commonTagsHandler which was called 108 times, avg 3µs/call:
# 108 times (288µs+0s) by Foswiki::Plugin::invoke at line 310 of /var/www/foswikidev/core/lib/Foswiki/Plugin.pm, avg 3µs/call | ||||
40 | ### my ( $text, $topic, $web ) = @_; # do not uncomment, use $_[0], $_[1]... instead | ||||
41 | 108 | 287µs | if ( $_[0] =~ m/%SLIDESHOWSTART/ ) { | ||
42 | unless ($core) { | ||||
43 | require Foswiki::Plugins::SlideShowPlugin::SlideShow; | ||||
44 | $core = new Foswiki::Plugins::SlideShowPlugin::SlideShow(); | ||||
45 | } | ||||
46 | $_[0] = $core->renderSlideShow(@_); | ||||
47 | } | ||||
48 | } | ||||
49 | |||||
50 | 1 | 3µs | 1; | ||
51 | __END__ |