Filename | /home/hinrik/perl5/perlbrew/perls/perl-5.13.5/lib/site_perl/5.13.5/Regexp/Common/URI/RFC1035.pm |
Statements | Executed 32 statements in 378µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 24µs | 112µs | BEGIN@3 | Regexp::Common::URI::RFC1035::
1 | 1 | 1 | 14µs | 191µs | BEGIN@24 | Regexp::Common::URI::RFC1035::
1 | 1 | 1 | 11µs | 16µs | BEGIN@5 | Regexp::Common::URI::RFC1035::
1 | 1 | 1 | 11µs | 108µs | BEGIN@11 | Regexp::Common::URI::RFC1035::
1 | 1 | 1 | 10µs | 47µs | BEGIN@8 | Regexp::Common::URI::RFC1035::
1 | 1 | 1 | 10µs | 19µs | BEGIN@6 | Regexp::Common::URI::RFC1035::
1 | 1 | 1 | 10µs | 10µs | BEGIN@18 | Regexp::Common::URI::RFC1035::
1 | 1 | 1 | 6µs | 6µs | BEGIN@13 | Regexp::Common::URI::RFC1035::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Regexp::Common::URI::RFC1035; | ||||
2 | |||||
3 | 2 | 29µs | 2 | 112µs | # spent 112µs (24+87) within Regexp::Common::URI::RFC1035::BEGIN@3 which was called:
# once (24µs+87µs) by Regexp::Common::URI::RFC2806::BEGIN@3 at line 3 # spent 112µs making 1 call to Regexp::Common::URI::RFC1035::BEGIN@3
# spent 87µs making 1 call to Regexp::Common::import, recursion: max depth 1, sum of overlapping time 87µs |
4 | |||||
5 | 2 | 25µs | 2 | 21µs | # spent 16µs (11+5) within Regexp::Common::URI::RFC1035::BEGIN@5 which was called:
# once (11µs+5µs) by Regexp::Common::URI::RFC2806::BEGIN@3 at line 5 # spent 16µs making 1 call to Regexp::Common::URI::RFC1035::BEGIN@5
# spent 5µs making 1 call to strict::import |
6 | 2 | 26µs | 2 | 27µs | # spent 19µs (10+9) within Regexp::Common::URI::RFC1035::BEGIN@6 which was called:
# once (10µs+9µs) by Regexp::Common::URI::RFC2806::BEGIN@3 at line 6 # spent 19µs making 1 call to Regexp::Common::URI::RFC1035::BEGIN@6
# spent 9µs making 1 call to warnings::import |
7 | |||||
8 | 2 | 36µs | 2 | 84µs | # spent 47µs (10+37) within Regexp::Common::URI::RFC1035::BEGIN@8 which was called:
# once (10µs+37µs) by Regexp::Common::URI::RFC2806::BEGIN@3 at line 8 # spent 47µs making 1 call to Regexp::Common::URI::RFC1035::BEGIN@8
# spent 37µs making 1 call to vars::import |
9 | 1 | 1µs | $VERSION = '2010010201'; | ||
10 | |||||
11 | 2 | 30µs | 2 | 205µs | # spent 108µs (11+97) within Regexp::Common::URI::RFC1035::BEGIN@11 which was called:
# once (11µs+97µs) by Regexp::Common::URI::RFC2806::BEGIN@3 at line 11 # spent 108µs making 1 call to Regexp::Common::URI::RFC1035::BEGIN@11
# spent 97µs making 1 call to vars::import |
12 | |||||
13 | 2 | 52µs | 1 | 6µs | # spent 6µs within Regexp::Common::URI::RFC1035::BEGIN@13 which was called:
# once (6µs+0s) by Regexp::Common::URI::RFC2806::BEGIN@3 at line 13 # spent 6µs making 1 call to Regexp::Common::URI::RFC1035::BEGIN@13 |
14 | 1 | 5µs | @ISA = qw /Exporter/; | ||
15 | |||||
16 | 1 | 1µs | my %vars; | ||
17 | |||||
18 | # spent 10µs within Regexp::Common::URI::RFC1035::BEGIN@18 which was called:
# once (10µs+0s) by Regexp::Common::URI::RFC2806::BEGIN@3 at line 22 | ||||
19 | 3 | 10µs | $vars {low} = [qw /$digit $letter $let_dig $let_dig_hyp $ldh_str/]; | ||
20 | $vars {parts} = [qw /$label $subdomain/]; | ||||
21 | $vars {domain} = [qw /$domain/]; | ||||
22 | 1 | 28µs | 1 | 10µs | } # spent 10µs making 1 call to Regexp::Common::URI::RFC1035::BEGIN@18 |
23 | |||||
24 | 2 | 100µs | 2 | 368µs | # spent 191µs (14+177) within Regexp::Common::URI::RFC1035::BEGIN@24 which was called:
# once (14µs+177µs) by Regexp::Common::URI::RFC2806::BEGIN@3 at line 24 # spent 191µs making 1 call to Regexp::Common::URI::RFC1035::BEGIN@24
# spent 177µs making 1 call to vars::import |
25 | |||||
26 | 1 | 2µs | @EXPORT = qw /$host/; | ||
27 | 1 | 8µs | @EXPORT_OK = map {@$_} values %vars; | ||
28 | 1 | 4µs | %EXPORT_TAGS = (%vars, ALL => [@EXPORT_OK]); | ||
29 | |||||
30 | # RFC 1035. | ||||
31 | 1 | 900ns | $digit = "[0-9]"; | ||
32 | 1 | 1µs | $letter = "[A-Za-z]"; | ||
33 | 1 | 1µs | $let_dig = "[A-Za-z0-9]"; | ||
34 | 1 | 1µs | $let_dig_hyp = "[-A-Za-z0-9]"; | ||
35 | 1 | 1µs | $ldh_str = "(?:[-A-Za-z0-9]+)"; | ||
36 | 1 | 2µs | $label = "(?:$letter(?:(?:$ldh_str){0,61}$let_dig)?)"; | ||
37 | 1 | 2µs | $subdomain = "(?:$label(?:[.]$label)*)"; | ||
38 | 1 | 1µs | $domain = "(?: |(?:$subdomain))"; | ||
39 | |||||
40 | |||||
41 | 1 | 10µs | 1; | ||
42 | |||||
43 | __END__ |