Filename | /var/www/foswikidev/core/lib/Foswiki/Contrib/JsonRpcContrib.pm |
Statements | Executed 34 statements in 433µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
5 | 1 | 1 | 1.22ms | 3.53ms | getServer | Foswiki::Contrib::JsonRpcContrib::
5 | 1 | 1 | 29µs | 3.57ms | registerMethod | Foswiki::Contrib::JsonRpcContrib::
1 | 1 | 1 | 16µs | 28µs | BEGIN@5 | Foswiki::Contrib::JsonRpcContrib::
1 | 1 | 1 | 11µs | 24µs | BEGIN@14 | Foswiki::Contrib::JsonRpcContrib::
1 | 1 | 1 | 10µs | 21µs | BEGIN@12 | Foswiki::Contrib::JsonRpcContrib::
1 | 1 | 1 | 9µs | 19µs | BEGIN@9 | Foswiki::Contrib::JsonRpcContrib::
1 | 1 | 1 | 9µs | 12µs | BEGIN@6 | Foswiki::Contrib::JsonRpcContrib::
1 | 1 | 1 | 3µs | 3µs | BEGIN@7 | Foswiki::Contrib::JsonRpcContrib::
0 | 0 | 0 | 0s | 0s | dispatch | Foswiki::Contrib::JsonRpcContrib::
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::Contrib::JsonRpcContrib; | ||||
4 | |||||
5 | 2 | 26µs | 2 | 40µs | # spent 28µs (16+12) within Foswiki::Contrib::JsonRpcContrib::BEGIN@5 which was called:
# once (16µs+12µs) by Foswiki::Plugins::ConfigurePlugin::BEGIN@36 at line 5 # spent 28µs making 1 call to Foswiki::Contrib::JsonRpcContrib::BEGIN@5
# spent 12µs making 1 call to strict::import |
6 | 2 | 22µs | 2 | 16µs | # spent 12µs (9+4) within Foswiki::Contrib::JsonRpcContrib::BEGIN@6 which was called:
# once (9µs+4µs) by Foswiki::Plugins::ConfigurePlugin::BEGIN@36 at line 6 # spent 12µs making 1 call to Foswiki::Contrib::JsonRpcContrib::BEGIN@6
# spent 4µs making 1 call to warnings::import |
7 | 2 | 44µs | 1 | 3µs | # spent 3µs within Foswiki::Contrib::JsonRpcContrib::BEGIN@7 which was called:
# once (3µs+0s) by Foswiki::Plugins::ConfigurePlugin::BEGIN@36 at line 7 # spent 3µs making 1 call to Foswiki::Contrib::JsonRpcContrib::BEGIN@7 |
8 | |||||
9 | # spent 19µs (9+11) within Foswiki::Contrib::JsonRpcContrib::BEGIN@9 which was called:
# once (9µs+11µs) by Foswiki::Plugins::ConfigurePlugin::BEGIN@36 at line 16 | ||||
10 | # Backwards compatibility for Foswiki 1.1.x | ||||
11 | 1 | 7µs | 1 | 11µs | unless ( Foswiki::Request->can('multi_param') ) { # spent 11µs making 1 call to CGI::can |
12 | 2 | 40µs | 2 | 32µs | # spent 21µs (10+11) within Foswiki::Contrib::JsonRpcContrib::BEGIN@12 which was called:
# once (10µs+11µs) by Foswiki::Plugins::ConfigurePlugin::BEGIN@36 at line 12 # spent 21µs making 1 call to Foswiki::Contrib::JsonRpcContrib::BEGIN@12
# spent 11µs making 1 call to warnings::unimport |
13 | *Foswiki::Request::multi_param = \&Foswiki::Request::param; | ||||
14 | 2 | 28µs | 2 | 37µs | # spent 24µs (11+13) within Foswiki::Contrib::JsonRpcContrib::BEGIN@14 which was called:
# once (11µs+13µs) by Foswiki::Plugins::ConfigurePlugin::BEGIN@36 at line 14 # spent 24µs making 1 call to Foswiki::Contrib::JsonRpcContrib::BEGIN@14
# spent 13µs making 1 call to warnings::import |
15 | } | ||||
16 | 1 | 142µs | 1 | 19µs | } # spent 19µs making 1 call to Foswiki::Contrib::JsonRpcContrib::BEGIN@9 |
17 | |||||
18 | =begin TML | ||||
19 | |||||
20 | ---+ package JsonRpcContrib | ||||
21 | |||||
22 | =cut | ||||
23 | |||||
24 | 1 | 700ns | our $VERSION = '2.23'; | ||
25 | 1 | 100ns | our $RELEASE = '2.23'; | ||
26 | 1 | 200ns | our $SHORTDESCRIPTION = 'JSON-RPC interface for Foswiki'; | ||
27 | 1 | 100ns | our $NO_PREFS_IN_TOPIC = 1; | ||
28 | 1 | 0s | our $SERVER; | ||
29 | |||||
30 | # spent 3.57ms (29µs+3.54) within Foswiki::Contrib::JsonRpcContrib::registerMethod which was called 5 times, avg 714µs/call:
# 5 times (29µs+3.54ms) by Foswiki::Plugins::ConfigurePlugin::initPlugin at line 94 of /var/www/foswikidev/core/lib/Foswiki/Plugins/ConfigurePlugin.pm, avg 714µs/call | ||||
31 | 5 | 19µs | 10 | 3.54ms | getServer()->registerMethod(@_); # spent 3.53ms making 5 calls to Foswiki::Contrib::JsonRpcContrib::getServer, avg 705µs/call
# spent 16µs making 5 calls to Foswiki::Contrib::JsonRpcContrib::Server::registerMethod, avg 3µs/call |
32 | } | ||||
33 | |||||
34 | sub dispatch { | ||||
35 | getServer()->dispatch(@_); | ||||
36 | } | ||||
37 | |||||
38 | # spent 3.53ms (1.22+2.30) within Foswiki::Contrib::JsonRpcContrib::getServer which was called 5 times, avg 705µs/call:
# 5 times (1.22ms+2.30ms) by Foswiki::Contrib::JsonRpcContrib::registerMethod at line 31, avg 705µs/call | ||||
39 | |||||
40 | 5 | 2µs | unless ( defined $SERVER ) { | ||
41 | 1 | 83µs | require Foswiki::Contrib::JsonRpcContrib::Server; | ||
42 | 1 | 6µs | 1 | 11µs | $SERVER = new Foswiki::Contrib::JsonRpcContrib::Server(); # spent 11µs making 1 call to Foswiki::Contrib::JsonRpcContrib::Server::new |
43 | } | ||||
44 | |||||
45 | 5 | 12µs | return $SERVER; | ||
46 | } | ||||
47 | |||||
48 | 1 | 3µs | 1; | ||
49 | __END__ |