| 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 375µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 26µs | 110µs | Regexp::Common::URI::RFC1035::BEGIN@3 |
| 1 | 1 | 1 | 14µs | 194µs | Regexp::Common::URI::RFC1035::BEGIN@24 |
| 1 | 1 | 1 | 12µs | 46µs | Regexp::Common::URI::RFC1035::BEGIN@8 |
| 1 | 1 | 1 | 11µs | 15µs | Regexp::Common::URI::RFC1035::BEGIN@5 |
| 1 | 1 | 1 | 10µs | 20µs | Regexp::Common::URI::RFC1035::BEGIN@6 |
| 1 | 1 | 1 | 10µs | 10µs | Regexp::Common::URI::RFC1035::BEGIN@18 |
| 1 | 1 | 1 | 10µs | 109µs | Regexp::Common::URI::RFC1035::BEGIN@11 |
| 1 | 1 | 1 | 6µs | 6µs | Regexp::Common::URI::RFC1035::BEGIN@13 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Regexp::Common::URI::RFC1035; | ||||
| 2 | |||||
| 3 | 2 | 28µs | 2 | 110µs | # spent 110µs (26+84) within Regexp::Common::URI::RFC1035::BEGIN@3 which was called:
# once (26µs+84µs) by Regexp::Common::URI::RFC2806::BEGIN@3 at line 3 # spent 110µs making 1 call to Regexp::Common::URI::RFC1035::BEGIN@3
# spent 84µs making 1 call to Regexp::Common::import, recursion: max depth 1, sum of overlapping time 84µs |
| 4 | |||||
| 5 | 2 | 28µs | 2 | 19µs | # spent 15µs (11+4) within Regexp::Common::URI::RFC1035::BEGIN@5 which was called:
# once (11µs+4µs) by Regexp::Common::URI::RFC2806::BEGIN@3 at line 5 # spent 15µs making 1 call to Regexp::Common::URI::RFC1035::BEGIN@5
# spent 4µs making 1 call to strict::import |
| 6 | 2 | 26µs | 2 | 29µs | # spent 20µ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 20µs making 1 call to Regexp::Common::URI::RFC1035::BEGIN@6
# spent 9µs making 1 call to warnings::import |
| 7 | |||||
| 8 | 2 | 34µs | 2 | 80µs | # spent 46µs (12+34) within Regexp::Common::URI::RFC1035::BEGIN@8 which was called:
# once (12µs+34µs) by Regexp::Common::URI::RFC2806::BEGIN@3 at line 8 # spent 46µs making 1 call to Regexp::Common::URI::RFC1035::BEGIN@8
# spent 34µs making 1 call to vars::import |
| 9 | 1 | 2µs | $VERSION = '2010010201'; | ||
| 10 | |||||
| 11 | 2 | 26µs | 2 | 208µs | # spent 109µs (10+99) within Regexp::Common::URI::RFC1035::BEGIN@11 which was called:
# once (10µs+99µs) by Regexp::Common::URI::RFC2806::BEGIN@3 at line 11 # spent 109µs making 1 call to Regexp::Common::URI::RFC1035::BEGIN@11
# spent 99µs making 1 call to vars::import |
| 12 | |||||
| 13 | 2 | 54µ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 | 900ns | 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 | 34µs | 1 | 10µs | } # spent 10µs making 1 call to Regexp::Common::URI::RFC1035::BEGIN@18 |
| 23 | |||||
| 24 | 2 | 96µs | 2 | 375µs | # spent 194µs (14+181) within Regexp::Common::URI::RFC1035::BEGIN@24 which was called:
# once (14µs+181µs) by Regexp::Common::URI::RFC2806::BEGIN@3 at line 24 # spent 194µs making 1 call to Regexp::Common::URI::RFC1035::BEGIN@24
# spent 180µs making 1 call to vars::import |
| 25 | |||||
| 26 | 1 | 2µs | @EXPORT = qw /$host/; | ||
| 27 | 1 | 5µs | @EXPORT_OK = map {@$_} values %vars; | ||
| 28 | 1 | 4µs | %EXPORT_TAGS = (%vars, ALL => [@EXPORT_OK]); | ||
| 29 | |||||
| 30 | # RFC 1035. | ||||
| 31 | 1 | 1µs | $digit = "[0-9]"; | ||
| 32 | 1 | 800ns | $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 | 2µs | $domain = "(?: |(?:$subdomain))"; | ||
| 39 | |||||
| 40 | |||||
| 41 | 1 | 10µs | 1; | ||
| 42 | |||||
| 43 | __END__ |