Filename | /var/www/foswiki11/lib/Foswiki/Plugins/SlideShowPlugin.pm |
Statements | Executed 30 statements in 440µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
13 | 1 | 1 | 108µs | 108µs | commonTagsHandler | Foswiki::Plugins::SlideShowPlugin::
1 | 1 | 1 | 22µs | 35µs | BEGIN@5 | Foswiki::Plugins::SlideShowPlugin::
1 | 1 | 1 | 16µs | 22µs | initPlugin | Foswiki::Plugins::SlideShowPlugin::
1 | 1 | 1 | 10µs | 33µs | BEGIN@12 | Foswiki::Plugins::SlideShowPlugin::
1 | 1 | 1 | 10µs | 15µs | BEGIN@6 | Foswiki::Plugins::SlideShowPlugin::
1 | 1 | 1 | 9µs | 56µs | BEGIN@8 | Foswiki::Plugins::SlideShowPlugin::
0 | 0 | 0 | 0s | 0s | _addHeader | 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 | |||||
3 | package Foswiki::Plugins::SlideShowPlugin; | ||||
4 | |||||
5 | 2 | 29µs | 2 | 48µs | # spent 35µs (22+13) within Foswiki::Plugins::SlideShowPlugin::BEGIN@5 which was called:
# once (22µs+13µs) by Foswiki::Plugin::BEGIN@2.31 at line 5 # spent 35µs making 1 call to Foswiki::Plugins::SlideShowPlugin::BEGIN@5
# spent 13µs making 1 call to strict::import |
6 | 2 | 30µs | 2 | 21µs | # spent 15µs (10+6) within Foswiki::Plugins::SlideShowPlugin::BEGIN@6 which was called:
# once (10µs+6µs) by Foswiki::Plugin::BEGIN@2.31 at line 6 # spent 15µs making 1 call to Foswiki::Plugins::SlideShowPlugin::BEGIN@6
# spent 6µs making 1 call to warnings::import |
7 | |||||
8 | 1 | 5µs | 1 | 47µs | # spent 56µs (9+47) within Foswiki::Plugins::SlideShowPlugin::BEGIN@8 which was called:
# once (9µs+47µs) by Foswiki::Plugin::BEGIN@2.31 at line 10 # spent 47µs making 1 call to vars::import |
9 | $web $topic $user $installWeb $debug $addedHead | ||||
10 | 1 | 23µs | 1 | 56µs | ); # spent 56µs making 1 call to Foswiki::Plugins::SlideShowPlugin::BEGIN@8 |
11 | |||||
12 | 3 | 239µs | 3 | 62µs | # spent 33µs (10+24) within Foswiki::Plugins::SlideShowPlugin::BEGIN@12 which was called:
# once (10µs+24µs) by Foswiki::Plugin::BEGIN@2.31 at line 12 # spent 33µs making 1 call to Foswiki::Plugins::SlideShowPlugin::BEGIN@12
# spent 24µs making 1 call to version::import
# spent 5µs making 1 call to version::vxs::declare |
13 | 1 | 300ns | our $RELEASE = '2.1.6'; | ||
14 | 1 | 200ns | our $SHORTDESCRIPTION = | ||
15 | 'Create web based presentations based on topics with headings'; | ||||
16 | 1 | 200ns | our $NO_PREFS_IN_TOPIC = 1; | ||
17 | |||||
18 | # spent 22µs (16+6) within Foswiki::Plugins::SlideShowPlugin::initPlugin which was called:
# once (16µs+6µs) by Foswiki::Plugin::__ANON__[/var/www/foswiki11/lib/Foswiki/Plugin.pm:241] at line 234 of /var/www/foswiki11/lib/Foswiki/Plugin.pm | ||||
19 | 1 | 4µs | ( $topic, $web, $user, $installWeb ) = @_; | ||
20 | |||||
21 | # check for Plugins.pm versions | ||||
22 | 1 | 500ns | $addedHead = 0; | ||
23 | 1 | 12µs | 1 | 6µs | if ( $Foswiki::Plugins::VERSION < 1 ) { # spent 6µs making 1 call to version::vxs::VCMP |
24 | Foswiki::Func::writeWarning( | ||||
25 | "Version mismatch between SlideShowPlugin and Plugins.pm"); | ||||
26 | return 0; | ||||
27 | } | ||||
28 | |||||
29 | 1 | 6µs | return 1; | ||
30 | } | ||||
31 | |||||
32 | # spent 108µs within Foswiki::Plugins::SlideShowPlugin::commonTagsHandler which was called 13 times, avg 8µs/call:
# 13 times (108µs+0s) by Foswiki::Plugin::invoke at line 294 of /var/www/foswiki11/lib/Foswiki/Plugin.pm, avg 8µs/call | ||||
33 | ### my ( $text, $topic, $web ) = @_; # do not uncomment, use $_[0], $_[1]... instead | ||||
34 | 13 | 87µs | if ( $_[0] =~ /%SLIDESHOWSTART/ ) { | ||
35 | _addHeader(); | ||||
36 | require Foswiki::Plugins::SlideShowPlugin::SlideShow; | ||||
37 | Foswiki::Plugins::SlideShowPlugin::SlideShow::init($installWeb); | ||||
38 | $_[0] = Foswiki::Plugins::SlideShowPlugin::SlideShow::handler(@_); | ||||
39 | } | ||||
40 | } | ||||
41 | |||||
42 | sub _addHeader { | ||||
43 | |||||
44 | return if $addedHead; | ||||
45 | my $header = <<'EOF'; | ||||
46 | <style type="text/css" media="all"> | ||||
47 | @import url("%PUBURL%/%SYSTEMWEB%/SlideShowPlugin/slideshow.css"); | ||||
48 | </style> | ||||
49 | EOF | ||||
50 | Foswiki::Func::addToHEAD( 'SLIDESHOWPLUGIN', $header ); | ||||
51 | $addedHead = 1; | ||||
52 | } | ||||
53 | |||||
54 | 1 | 4µs | 1; | ||
55 | __END__ |