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 515µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 791µs | 2.15ms | BEGIN@6 | Regexp::Common::URI::gopher::
1 | 1 | 1 | 36µs | 119µs | BEGIN@3 | Regexp::Common::URI::gopher::
1 | 1 | 1 | 12µs | 20µs | BEGIN@9 | Regexp::Common::URI::gopher::
1 | 1 | 1 | 12µs | 57µs | BEGIN@4 | Regexp::Common::URI::gopher::
1 | 1 | 1 | 11µs | 187µs | BEGIN@5 | Regexp::Common::URI::gopher::
1 | 1 | 1 | 11µs | 16µs | BEGIN@8 | Regexp::Common::URI::gopher::
1 | 1 | 1 | 11µs | 44µs | BEGIN@11 | 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 | 32µs | 2 | 119µs | # spent 119µs (36+84) within Regexp::Common::URI::gopher::BEGIN@3 which was called:
# once (36µs+84µs) by Regexp::Common::import at line 3 # spent 119µs making 1 call to Regexp::Common::URI::gopher::BEGIN@3
# spent 84µs making 1 call to Regexp::Common::import, recursion: max depth 1, sum of overlapping time 84µs |
4 | 2 | 33µs | 2 | 102µs | # spent 57µs (12+45) within Regexp::Common::URI::gopher::BEGIN@4 which was called:
# once (12µs+45µs) by Regexp::Common::import at line 4 # spent 57µs making 1 call to Regexp::Common::URI::gopher::BEGIN@4
# spent 45µs making 1 call to Exporter::import |
5 | 2 | 31µs | 2 | 362µs | # spent 187µs (11+175) within Regexp::Common::URI::gopher::BEGIN@5 which was called:
# once (11µs+175µs) by Regexp::Common::import at line 5 # spent 187µs making 1 call to Regexp::Common::URI::gopher::BEGIN@5
# spent 175µs making 1 call to Exporter::import |
6 | 2 | 170µs | 2 | 2.45ms | # spent 2.15ms (791µs+1.36) within Regexp::Common::URI::gopher::BEGIN@6 which was called:
# once (791µs+1.36ms) by Regexp::Common::import at line 6 # spent 2.15ms making 1 call to Regexp::Common::URI::gopher::BEGIN@6
# spent 301µs making 1 call to Exporter::import |
7 | |||||
8 | 2 | 25µs | 2 | 21µs | # spent 16µs (11+5) within Regexp::Common::URI::gopher::BEGIN@8 which was called:
# once (11µ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 | 27µs | 2 | 29µs | # spent 20µs (12+9) within Regexp::Common::URI::gopher::BEGIN@9 which was called:
# once (12µs+9µs) by Regexp::Common::import at line 9 # spent 20µs making 1 call to Regexp::Common::URI::gopher::BEGIN@9
# spent 9µs making 1 call to warnings::import |
10 | |||||
11 | 2 | 156µs | 2 | 76µs | # spent 44µs (11+33) within Regexp::Common::URI::gopher::BEGIN@11 which was called:
# once (11µs+33µs) by Regexp::Common::import at line 11 # spent 44µs making 1 call to Regexp::Common::URI::gopher::BEGIN@11
# spent 33µ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 | 1µs | my $selector = $pchars; | ||
22 | 1 | 1µs | my $selector_notab = $pchars_notab; | ||
23 | 1 | 800ns | my $gopher_type = "(?:[0-9+IgT])"; | ||
24 | |||||
25 | 1 | 800ns | 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 | 6µs | register_uri $scheme => $uri; # spent 6µ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 | 108µs | ; # spent 108µs making 1 call to Regexp::Common::pattern |
38 | |||||
39 | 1 | 12µs | 1; | ||
40 | |||||
41 | __END__ |