Filename | /home/hinrik/perl5/perlbrew/perls/perl-5.13.5/lib/site_perl/5.13.5/Regexp/Common/URI/http.pm |
Statements | Executed 17 statements in 280µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 24µs | 107µs | BEGIN@3 | Regexp::Common::URI::http::
1 | 1 | 1 | 19µs | 198µs | BEGIN@5 | Regexp::Common::URI::http::
1 | 1 | 1 | 12µs | 56µs | BEGIN@4 | Regexp::Common::URI::http::
1 | 1 | 1 | 11µs | 16µs | BEGIN@7 | Regexp::Common::URI::http::
1 | 1 | 1 | 11µs | 19µs | BEGIN@8 | Regexp::Common::URI::http::
1 | 1 | 1 | 10µs | 42µs | BEGIN@10 | Regexp::Common::URI::http::
0 | 0 | 0 | 0s | 0s | __ANON__[:25] | Regexp::Common::URI::http::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Regexp::Common::URI::http; | ||||
2 | |||||
3 | 2 | 31µs | 2 | 107µs | # spent 107µs (24+83) within Regexp::Common::URI::http::BEGIN@3 which was called:
# once (24µs+83µs) by Regexp::Common::import at line 3 # spent 107µs making 1 call to Regexp::Common::URI::http::BEGIN@3
# spent 83µs making 1 call to Regexp::Common::import, recursion: max depth 1, sum of overlapping time 83µs |
4 | 2 | 31µs | 2 | 100µs | # spent 56µs (12+44) within Regexp::Common::URI::http::BEGIN@4 which was called:
# once (12µs+44µs) by Regexp::Common::import at line 4 # spent 56µs making 1 call to Regexp::Common::URI::http::BEGIN@4
# spent 44µs making 1 call to Exporter::import |
5 | 2 | 35µs | 2 | 377µs | # spent 198µs (19+179) within Regexp::Common::URI::http::BEGIN@5 which was called:
# once (19µs+179µs) by Regexp::Common::import at line 5 # spent 198µs making 1 call to Regexp::Common::URI::http::BEGIN@5
# spent 179µs making 1 call to Exporter::import |
6 | |||||
7 | 2 | 25µs | 2 | 21µs | # spent 16µs (11+5) within Regexp::Common::URI::http::BEGIN@7 which was called:
# once (11µs+5µs) by Regexp::Common::import at line 7 # spent 16µs making 1 call to Regexp::Common::URI::http::BEGIN@7
# spent 5µs making 1 call to strict::import |
8 | 2 | 26µs | 2 | 28µs | # spent 19µs (11+9) within Regexp::Common::URI::http::BEGIN@8 which was called:
# once (11µs+9µs) by Regexp::Common::import at line 8 # spent 19µs making 1 call to Regexp::Common::URI::http::BEGIN@8
# spent 9µs making 1 call to warnings::import |
9 | |||||
10 | 2 | 112µs | 2 | 74µs | # spent 42µs (10+32) within Regexp::Common::URI::http::BEGIN@10 which was called:
# once (10µs+32µs) by Regexp::Common::import at line 10 # spent 42µs making 1 call to Regexp::Common::URI::http::BEGIN@10
# spent 32µs making 1 call to vars::import |
11 | 1 | 2µs | $VERSION = '2010010201'; | ||
12 | |||||
13 | |||||
14 | 1 | 4µs | my $http_uri = "(?k:(?k:http)://(?k:$host)(?::(?k:$port))?" . | ||
15 | "(?k:/(?k:(?k:$path_segments)(?:[?](?k:$query))?))?)"; | ||||
16 | |||||
17 | 1 | 3µs | 1 | 6µs | register_uri HTTP => $http_uri; # spent 6µs making 1 call to Regexp::Common::URI::register_uri |
18 | |||||
19 | pattern name => [qw (URI HTTP), "-scheme=http"], | ||||
20 | create => sub { | ||||
21 | my $scheme = $_ [1] -> {-scheme}; | ||||
22 | my $uri = $http_uri; | ||||
23 | $uri =~ s/http/$scheme/; | ||||
24 | $uri; | ||||
25 | } | ||||
26 | 1 | 6µs | 1 | 103µs | ; # spent 103µs making 1 call to Regexp::Common::pattern |
27 | |||||
28 | 1 | 7µs | 1; | ||
29 | |||||
30 | __END__ |