Filename | /usr/local/src/github.com/foswiki/core/lib/Foswiki/Plugins/JQueryPlugin/UI.pm |
Statements | Executed 23 statements in 680µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 76µs | 1.47ms | init | Foswiki::Plugins::JQueryPlugin::UI::
1 | 1 | 1 | 44µs | 96µs | new | Foswiki::Plugins::JQueryPlugin::UI::
1 | 1 | 1 | 33µs | 41µs | BEGIN@3 | Foswiki::Plugins::JQueryPlugin::UI::
1 | 1 | 1 | 20µs | 37µs | BEGIN@4 | Foswiki::Plugins::JQueryPlugin::UI::
1 | 1 | 1 | 17µs | 17µs | CORE:ftfile (opcode) | Foswiki::Plugins::JQueryPlugin::UI::
1 | 1 | 1 | 12µs | 12µs | BEGIN@5 | Foswiki::Plugins::JQueryPlugin::UI::
1 | 1 | 1 | 10µs | 10µs | BEGIN@7 | Foswiki::Plugins::JQueryPlugin::UI::
1 | 1 | 1 | 9µs | 9µs | BEGIN@6 | 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 | 50µs | 2 | 48µs | # spent 41µs (33+7) within Foswiki::Plugins::JQueryPlugin::UI::BEGIN@3 which was called:
# once (33µs+7µs) by Foswiki::Plugins::JQueryPlugin::Plugins::BEGIN@1.58 at line 3 # spent 41µs making 1 call to Foswiki::Plugins::JQueryPlugin::UI::BEGIN@3
# spent 7µs making 1 call to strict::import |
4 | 2 | 46µs | 2 | 55µs | # spent 37µs (20+18) within Foswiki::Plugins::JQueryPlugin::UI::BEGIN@4 which was called:
# once (20µs+18µs) by Foswiki::Plugins::JQueryPlugin::Plugins::BEGIN@1.58 at line 4 # spent 37µs making 1 call to Foswiki::Plugins::JQueryPlugin::UI::BEGIN@4
# spent 18µs making 1 call to warnings::import |
5 | 2 | 40µs | 1 | 12µs | # spent 12µs within Foswiki::Plugins::JQueryPlugin::UI::BEGIN@5 which was called:
# once (12µs+0s) by Foswiki::Plugins::JQueryPlugin::Plugins::BEGIN@1.58 at line 5 # spent 12µs making 1 call to Foswiki::Plugins::JQueryPlugin::UI::BEGIN@5 |
6 | 2 | 42µs | 1 | 9µs | # spent 9µs within Foswiki::Plugins::JQueryPlugin::UI::BEGIN@6 which was called:
# once (9µs+0s) by Foswiki::Plugins::JQueryPlugin::Plugins::BEGIN@1.58 at line 6 # spent 9µs making 1 call to Foswiki::Plugins::JQueryPlugin::UI::BEGIN@6 |
7 | 2 | 355µs | 1 | 10µs | # spent 10µs within Foswiki::Plugins::JQueryPlugin::UI::BEGIN@7 which was called:
# once (10µs+0s) by Foswiki::Plugins::JQueryPlugin::Plugins::BEGIN@1.58 at line 7 # spent 10µs making 1 call to Foswiki::Plugins::JQueryPlugin::UI::BEGIN@7 |
8 | 1 | 10µ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 96µs (44+52) within Foswiki::Plugins::JQueryPlugin::UI::new which was called:
# once (44µs+52µs) by Foswiki::Plugins::JQueryPlugin::Plugins::load at line 216 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Plugins/JQueryPlugin/Plugins.pm | ||||
27 | 1 | 2µs | my $class = shift; | ||
28 | |||||
29 | 1 | 34µs | 1 | 52µs | my $this = bless( # spent 52µs making 1 call to Foswiki::Plugins::JQueryPlugin::Plugin::new |
30 | $class->SUPER::new( | ||||
31 | name => 'UI', | ||||
32 | version => '1.8.16', | ||||
33 | puburl => '%PUBURLPATH%/%SYSTEMWEB%/JQueryPlugin/ui', | ||||
34 | author => 'see http://jqueryui.com/about', | ||||
35 | homepage => 'http://docs.jquery.com/UI', | ||||
36 | javascript => [ 'jquery-ui.js', ], | ||||
37 | dependencies => [ 'metadata', 'livequery' ], | ||||
38 | ), | ||||
39 | $class | ||||
40 | ); | ||||
41 | |||||
42 | 1 | 7µ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.47ms (76µs+1.39) within Foswiki::Plugins::JQueryPlugin::UI::init which was called:
# once (76µs+1.39ms) by Foswiki::Plugins::JQueryPlugin::Plugins::createPlugin at line 84 of /usr/local/src/github.com/foswiki/core/lib/Foswiki/Plugins/JQueryPlugin/Plugins.pm | ||||
54 | 1 | 1µs | my $this = shift; | ||
55 | |||||
56 | 1 | 15µs | 1 | 0s | return unless $this->SUPER::init(); # spent 1.24ms making 1 call to Foswiki::Plugins::JQueryPlugin::Plugin::init, recursion: max depth 1, sum of overlapping time 1.24ms |
57 | |||||
58 | # load default theme | ||||
59 | 1 | 6µs | 1 | 110µs | Foswiki::Plugins::JQueryPlugin::createTheme(); # spent 110µs making 1 call to Foswiki::Plugins::JQueryPlugin::createTheme |
60 | |||||
61 | # open matching localization file if it exists | ||||
62 | 1 | 2µs | my $session = $Foswiki::Plugins::SESSION; | ||
63 | 1 | 20µs | 2 | 24µs | my $langTag = $session->i18n->language(); # spent 15µs making 1 call to Foswiki::i18n
# spent 9µs making 1 call to Foswiki::I18N::Fallback::language |
64 | 1 | 3µs | my $messagePath = | ||
65 | $Foswiki::cfg{SystemWebName} | ||||
66 | . '/JQueryPlugin/i18n/ui.datepicker-' | ||||
67 | . $langTag . '.js'; | ||||
68 | |||||
69 | 1 | 2µs | my $messageFile = $Foswiki::cfg{PubDir} . '/' . $messagePath; | ||
70 | 1 | 39µs | 1 | 17µs | if ( -f $messageFile ) { # spent 17µs making 1 call to Foswiki::Plugins::JQueryPlugin::UI::CORE:ftfile |
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 | 5µs | 1; | ||
79 | |||||
80 | __END__ | ||||
# spent 17µs within Foswiki::Plugins::JQueryPlugin::UI::CORE:ftfile which was called:
# once (17µs+0s) by Foswiki::Plugins::JQueryPlugin::UI::init at line 70 |