Filename | /var/www/foswikidev/core/lib/Foswiki/Plugins/JQueryPlugin/UI.pm |
Statements | Executed 23 statements in 344µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 34µs | 1.03ms | init | Foswiki::Plugins::JQueryPlugin::UI::
1 | 1 | 1 | 22µs | 41µs | new | Foswiki::Plugins::JQueryPlugin::UI::
1 | 1 | 1 | 15µs | 28µs | BEGIN@3 | Foswiki::Plugins::JQueryPlugin::UI::
1 | 1 | 1 | 9µs | 14µs | BEGIN@4 | Foswiki::Plugins::JQueryPlugin::UI::
1 | 1 | 1 | 4µs | 4µs | BEGIN@6 | Foswiki::Plugins::JQueryPlugin::UI::
1 | 1 | 1 | 4µs | 4µs | BEGIN@7 | Foswiki::Plugins::JQueryPlugin::UI::
1 | 1 | 1 | 4µs | 4µs | BEGIN@5 | Foswiki::Plugins::JQueryPlugin::UI::
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::JQueryPlugin::UI; | ||||
3 | 2 | 27µs | 2 | 40µs | # spent 28µs (15+13) within Foswiki::Plugins::JQueryPlugin::UI::BEGIN@3 which was called:
# once (15µs+13µs) by Foswiki::Plugins::JQueryPlugin::Plugins::BEGIN@1.84 at line 3 # spent 28µs making 1 call to Foswiki::Plugins::JQueryPlugin::UI::BEGIN@3
# spent 13µs making 1 call to strict::import |
4 | 2 | 23µs | 2 | 19µs | # spent 14µs (9+5) within Foswiki::Plugins::JQueryPlugin::UI::BEGIN@4 which was called:
# once (9µs+5µs) by Foswiki::Plugins::JQueryPlugin::Plugins::BEGIN@1.84 at line 4 # spent 14µs making 1 call to Foswiki::Plugins::JQueryPlugin::UI::BEGIN@4
# spent 5µs making 1 call to warnings::import |
5 | 2 | 20µs | 1 | 4µs | # spent 4µs within Foswiki::Plugins::JQueryPlugin::UI::BEGIN@5 which was called:
# once (4µs+0s) by Foswiki::Plugins::JQueryPlugin::Plugins::BEGIN@1.84 at line 5 # spent 4µs making 1 call to Foswiki::Plugins::JQueryPlugin::UI::BEGIN@5 |
6 | 2 | 20µs | 1 | 4µs | # spent 4µs within Foswiki::Plugins::JQueryPlugin::UI::BEGIN@6 which was called:
# once (4µs+0s) by Foswiki::Plugins::JQueryPlugin::Plugins::BEGIN@1.84 at line 6 # spent 4µs making 1 call to Foswiki::Plugins::JQueryPlugin::UI::BEGIN@6 |
7 | 2 | 193µs | 1 | 4µs | # spent 4µs within Foswiki::Plugins::JQueryPlugin::UI::BEGIN@7 which was called:
# once (4µs+0s) by Foswiki::Plugins::JQueryPlugin::Plugins::BEGIN@1.84 at line 7 # spent 4µs making 1 call to Foswiki::Plugins::JQueryPlugin::UI::BEGIN@7 |
8 | 1 | 7µs | our @ISA = qw( Foswiki::Plugins::JQueryPlugin::Plugin ); | ||
9 | |||||
10 | =begin TML | ||||
11 | |||||
12 | ---+ package Foswiki::Plugins::JQueryPlugin::UI | ||||
13 | |||||
14 | This is the perl stub for the jquery.ui | ||||
15 | |||||
16 | =cut | ||||
17 | |||||
18 | =begin TML | ||||
19 | |||||
20 | ---++ ClassMethod new( $class, ... ) | ||||
21 | |||||
22 | Constructor | ||||
23 | |||||
24 | =cut | ||||
25 | |||||
26 | # spent 41µs (22+19) within Foswiki::Plugins::JQueryPlugin::UI::new which was called:
# once (22µs+19µs) by Foswiki::Plugins::JQueryPlugin::Plugins::load at line 290 of /var/www/foswikidev/core/lib/Foswiki/Plugins/JQueryPlugin/Plugins.pm | ||||
27 | 1 | 500ns | my $class = shift; | ||
28 | |||||
29 | 1 | 17µs | 1 | 19µs | my $this = bless( # spent 19µs making 1 call to Foswiki::Plugins::JQueryPlugin::Plugin::new |
30 | $class->SUPER::new( | ||||
31 | name => 'UI', | ||||
32 | version => '1.10.4', | ||||
33 | puburl => '%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/ui', | ||||
34 | author => 'see http://jqueryui.com/about', | ||||
35 | homepage => 'http://api.jqueryui.com/', | ||||
36 | javascript => [ 'jquery-ui.js', ], | ||||
37 | dependencies => [ 'metadata', 'livequery', 'easing' ], | ||||
38 | ), | ||||
39 | $class | ||||
40 | ); | ||||
41 | |||||
42 | 1 | 4µs | return $this; | ||
43 | } | ||||
44 | |||||
45 | =begin TML | ||||
46 | |||||
47 | ---++ ClassMethod init( $this ) | ||||
48 | |||||
49 | Initialize this plugin by adding the required static files to the page | ||||
50 | |||||
51 | =cut | ||||
52 | |||||
53 | # spent 1.03ms (34µs+993µs) within Foswiki::Plugins::JQueryPlugin::UI::init which was called:
# once (34µs+993µs) by Foswiki::Plugins::JQueryPlugin::Plugins::createPlugin at line 151 of /var/www/foswikidev/core/lib/Foswiki/Plugins/JQueryPlugin/Plugins.pm | ||||
54 | 1 | 300ns | my $this = shift; | ||
55 | |||||
56 | 1 | 7µs | 1 | 0s | return unless $this->SUPER::init(); # spent 945µs making 1 call to Foswiki::Plugins::JQueryPlugin::Plugin::init, recursion: max depth 1, sum of overlapping time 945µs |
57 | |||||
58 | # load default theme | ||||
59 | 1 | 2µs | 1 | 43µs | Foswiki::Plugins::JQueryPlugin::createTheme(); # spent 43µs making 1 call to Foswiki::Plugins::JQueryPlugin::createTheme |
60 | |||||
61 | # open matching localization file if it exists | ||||
62 | 1 | 200ns | my $session = $Foswiki::Plugins::SESSION; | ||
63 | 1 | 4µs | 2 | 4µs | my $langTag = $session->i18n->language(); # spent 2µs making 1 call to Foswiki::I18N::Fallback::language
# spent 2µs making 1 call to Foswiki::i18n |
64 | 1 | 2µs | my $messagePath = | ||
65 | $Foswiki::cfg{SystemWebName} | ||||
66 | . '/JQueryPlugin/i18n/jquery.ui.datepicker-' | ||||
67 | . $langTag . '.js'; | ||||
68 | |||||
69 | 1 | 1µs | my $messageFile = $Foswiki::cfg{PubDir} . '/' . $messagePath; | ||
70 | 1 | 13µs | if ( -f $messageFile ) { | ||
71 | Foswiki::Func::addToZone( | ||||
72 | 'script', "JQUERYPLUGIN::UI::LANG", | ||||
73 | <<"HERE", 'JQUERYPLUGIN::UI' ); | ||||
74 | <script type='text/javascript' src='$Foswiki::cfg{PubUrlPath}/$messagePath'></script> | ||||
75 | HERE | ||||
76 | } | ||||
77 | } | ||||
78 | 1 | 3µs | 1; | ||
79 | |||||
80 | __END__ |