Filename | /home/hinrik/perl5/perlbrew/perls/perl-5.13.5/lib/site_perl/5.13.5/Regexp/Common/URI/gopher.pm |
Statements | Executed 28 statements in 525µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 820µs | 2.18ms | BEGIN@6 | Regexp::Common::URI::gopher::
1 | 1 | 1 | 28µs | 108µs | BEGIN@3 | Regexp::Common::URI::gopher::
1 | 1 | 1 | 12µs | 56µs | BEGIN@4 | Regexp::Common::URI::gopher::
1 | 1 | 1 | 12µs | 162µs | BEGIN@5 | Regexp::Common::URI::gopher::
1 | 1 | 1 | 12µs | 16µs | BEGIN@8 | Regexp::Common::URI::gopher::
1 | 1 | 1 | 11µs | 43µs | BEGIN@11 | Regexp::Common::URI::gopher::
1 | 1 | 1 | 11µs | 19µs | BEGIN@9 | Regexp::Common::URI::gopher::
0 | 0 | 0 | 0s | 0s | __ANON__[:36] | Regexp::Common::URI::gopher::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Regexp::Common::URI::gopher; | ||||
2 | |||||
3 | 2 | 43µs | 2 | 108µs | # spent 108µs (28+80) within Regexp::Common::URI::gopher::BEGIN@3 which was called:
# once (28µs+80µs) by Regexp::Common::import at line 3 # spent 108µs making 1 call to Regexp::Common::URI::gopher::BEGIN@3
# spent 80µs making 1 call to Regexp::Common::import, recursion: max depth 1, sum of overlapping time 80µs |
4 | 2 | 35µs | 2 | 99µs | # spent 56µs (12+43) within Regexp::Common::URI::gopher::BEGIN@4 which was called:
# once (12µs+43µs) by Regexp::Common::import at line 4 # spent 56µs making 1 call to Regexp::Common::URI::gopher::BEGIN@4
# spent 43µs making 1 call to Exporter::import |
5 | 2 | 31µs | 2 | 312µs | # spent 162µs (12+150) within Regexp::Common::URI::gopher::BEGIN@5 which was called:
# once (12µs+150µs) by Regexp::Common::import at line 5 # spent 162µs making 1 call to Regexp::Common::URI::gopher::BEGIN@5
# spent 150µs making 1 call to Exporter::import |
6 | 2 | 176µs | 2 | 2.48ms | # spent 2.18ms (820µs+1.36) within Regexp::Common::URI::gopher::BEGIN@6 which was called:
# once (820µs+1.36ms) by Regexp::Common::import at line 6 # spent 2.18ms making 1 call to Regexp::Common::URI::gopher::BEGIN@6
# spent 306µs making 1 call to Exporter::import |
7 | |||||
8 | 2 | 25µs | 2 | 21µs | # spent 16µs (12+5) within Regexp::Common::URI::gopher::BEGIN@8 which was called:
# once (12µs+5µs) by Regexp::Common::import at line 8 # spent 16µs making 1 call to Regexp::Common::URI::gopher::BEGIN@8
# spent 5µs making 1 call to strict::import |
9 | 2 | 29µs | 2 | 27µs | # spent 19µs (11+8) within Regexp::Common::URI::gopher::BEGIN@9 which was called:
# once (11µs+8µs) by Regexp::Common::import at line 9 # spent 19µs making 1 call to Regexp::Common::URI::gopher::BEGIN@9
# spent 8µs making 1 call to warnings::import |
10 | |||||
11 | 2 | 145µs | 2 | 75µs | # spent 43µs (11+32) within Regexp::Common::URI::gopher::BEGIN@11 which was called:
# once (11µs+32µs) by Regexp::Common::import at line 11 # spent 43µs making 1 call to Regexp::Common::URI::gopher::BEGIN@11
# spent 32µs making 1 call to vars::import |
12 | 1 | 2µs | $VERSION = '2010010201'; | ||
13 | |||||
14 | |||||
15 | 1 | 2µs | my $pchars_notab = "(?:(?:[$pchar_range]+|" . | ||
16 | "%(?:[1-9a-fA-F][0-9a-fA-F]|0[0-8a-fA-F]))*)"; | ||||
17 | |||||
18 | 1 | 1µs | my $gopherplus_string = $pchars; | ||
19 | 1 | 1µs | my $search = $pchars; | ||
20 | 1 | 1µs | my $search_notab = $pchars_notab; | ||
21 | 1 | 600ns | my $selector = $pchars; | ||
22 | 1 | 1µs | my $selector_notab = $pchars_notab; | ||
23 | 1 | 900ns | my $gopher_type = "(?:[0-9+IgT])"; | ||
24 | |||||
25 | 1 | 1µs | my $scheme = "gopher"; | ||
26 | 1 | 3µs | my $uri = "(?k:(?k:$scheme)://(?k:$host)(?::(?k:$port))?" . | ||
27 | "/(?k:(?k:$gopher_type)(?k:$selector)))"; | ||||
28 | 1 | 4µs | my $uri_notab = "(?k:(?k:$scheme)://(?k:$host)(?::(?k:$port))?" . | ||
29 | "/(?k:(?k:$gopher_type)(?k:$selector_notab)" . | ||||
30 | "(?:%09(?k:$search_notab)(?:%09(?k:$gopherplus_string))?)?))"; | ||||
31 | |||||
32 | 1 | 4µs | 1 | 5µs | register_uri $scheme => $uri; # spent 5µs making 1 call to Regexp::Common::URI::register_uri |
33 | |||||
34 | pattern name => [qw (URI gopher -notab=)], | ||||
35 | create => sub { exists $_ [1] {-notab} && | ||||
36 | !defined $_ [1] {-notab} ? $uri_notab : $uri}, | ||||
37 | 1 | 6µs | 1 | 101µs | ; # spent 101µs making 1 call to Regexp::Common::pattern |
38 | |||||
39 | 1 | 12µs | 1; | ||
40 | |||||
41 | __END__ |