Filename | /var/www/foswikidev/core/lib/Foswiki/Plugins/HolidaylistPlugin.pm |
Statements | Executed 13 statements in 208µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 22µs | 36µs | BEGIN@4 | Foswiki::Plugins::HolidaylistPlugin::
1 | 1 | 1 | 11µs | 26µs | initPlugin | Foswiki::Plugins::HolidaylistPlugin::
1 | 1 | 1 | 10µs | 14µs | BEGIN@5 | Foswiki::Plugins::HolidaylistPlugin::
0 | 0 | 0 | 0s | 0s | __ANON__[:22] | Foswiki::Plugins::HolidaylistPlugin::
0 | 0 | 0 | 0s | 0s | initCore | Foswiki::Plugins::HolidaylistPlugin::
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::HolidaylistPlugin; | ||||
3 | |||||
4 | 2 | 30µs | 2 | 50µs | # spent 36µs (22+14) within Foswiki::Plugins::HolidaylistPlugin::BEGIN@4 which was called:
# once (22µs+14µs) by Foswiki::Plugin::BEGIN@2.18 at line 4 # spent 36µs making 1 call to Foswiki::Plugins::HolidaylistPlugin::BEGIN@4
# spent 14µs making 1 call to strict::import |
5 | 2 | 163µs | 2 | 19µs | # spent 14µs (10+4) within Foswiki::Plugins::HolidaylistPlugin::BEGIN@5 which was called:
# once (10µs+4µs) by Foswiki::Plugin::BEGIN@2.18 at line 5 # spent 14µs making 1 call to Foswiki::Plugins::HolidaylistPlugin::BEGIN@5
# spent 4µs making 1 call to warnings::import |
6 | |||||
7 | # See plugin topic for complete release history | ||||
8 | 1 | 600ns | our $VERSION = '2.001'; | ||
9 | 1 | 200ns | our $RELEASE = '2.001'; | ||
10 | 1 | 200ns | our $SHORTDESCRIPTION = 'Create a table with a list of people on holidays'; | ||
11 | 1 | 200ns | our $NO_PREFS_IN_TOPIC = 1; | ||
12 | 1 | 100ns | our $inited = 0; | ||
13 | |||||
14 | # spent 26µs (11+15) within Foswiki::Plugins::HolidaylistPlugin::initPlugin which was called:
# once (11µs+15µ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 | ||||
15 | |||||
16 | # my ( $topic, $web, $user, $installWeb ) = @_; | ||||
17 | Foswiki::Func::registerTagHandler( | ||||
18 | 'HOLIDAYLIST', | ||||
19 | sub { | ||||
20 | initCore(); | ||||
21 | return Foswiki::Plugins::HolidaylistPlugin::Core::HOLIDAYLIST(@_); | ||||
22 | } | ||||
23 | 1 | 5µs | 1 | 15µs | ); # spent 15µs making 1 call to Foswiki::Func::registerTagHandler |
24 | |||||
25 | 1 | 400ns | $inited = 0; | ||
26 | 1 | 4µs | return 1; | ||
27 | } | ||||
28 | |||||
29 | sub initCore { | ||||
30 | return if $inited; | ||||
31 | $inited = 1; | ||||
32 | require Foswiki::Plugins::HolidaylistPlugin::Core; | ||||
33 | Foswiki::Plugins::HolidaylistPlugin::Core::init(); | ||||
34 | } | ||||
35 | |||||
36 | 1 | 3µs | 1; | ||
37 | __END__ |