| 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 270µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 26µs | 114µs | Regexp::Common::URI::http::BEGIN@3 |
| 1 | 1 | 1 | 16µs | 60µs | Regexp::Common::URI::http::BEGIN@4 |
| 1 | 1 | 1 | 12µs | 184µs | Regexp::Common::URI::http::BEGIN@5 |
| 1 | 1 | 1 | 12µs | 26µs | Regexp::Common::URI::http::BEGIN@7 |
| 1 | 1 | 1 | 11µs | 20µs | Regexp::Common::URI::http::BEGIN@8 |
| 1 | 1 | 1 | 11µs | 43µs | Regexp::Common::URI::http::BEGIN@10 |
| 0 | 0 | 0 | 0s | 0s | Regexp::Common::URI::http::__ANON__[:25] |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Regexp::Common::URI::http; | ||||
| 2 | |||||
| 3 | 2 | 32µs | 2 | 114µs | # spent 114µs (26+88) within Regexp::Common::URI::http::BEGIN@3 which was called:
# once (26µs+88µs) by Regexp::Common::import at line 3 # spent 114µs making 1 call to Regexp::Common::URI::http::BEGIN@3
# spent 88µs making 1 call to Regexp::Common::import, recursion: max depth 1, sum of overlapping time 88µs |
| 4 | 2 | 31µs | 2 | 104µs | # spent 60µs (16+44) within Regexp::Common::URI::http::BEGIN@4 which was called:
# once (16µs+44µs) by Regexp::Common::import at line 4 # spent 60µs making 1 call to Regexp::Common::URI::http::BEGIN@4
# spent 44µs making 1 call to Exporter::import |
| 5 | 2 | 29µs | 2 | 355µs | # spent 184µs (12+171) within Regexp::Common::URI::http::BEGIN@5 which was called:
# once (12µs+171µs) by Regexp::Common::import at line 5 # spent 184µs making 1 call to Regexp::Common::URI::http::BEGIN@5
# spent 171µs making 1 call to Exporter::import |
| 6 | |||||
| 7 | 2 | 26µs | 2 | 41µs | # spent 26µs (12+15) within Regexp::Common::URI::http::BEGIN@7 which was called:
# once (12µs+15µs) by Regexp::Common::import at line 7 # spent 26µs making 1 call to Regexp::Common::URI::http::BEGIN@7
# spent 15µs making 1 call to strict::import |
| 8 | 2 | 27µs | 2 | 29µs | # spent 20µ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 20µs making 1 call to Regexp::Common::URI::http::BEGIN@8
# spent 9µs making 1 call to warnings::import |
| 9 | |||||
| 10 | 2 | 103µs | 2 | 75µs | # spent 43µs (11+32) within Regexp::Common::URI::http::BEGIN@10 which was called:
# once (11µs+32µs) by Regexp::Common::import at line 10 # spent 43µs making 1 call to Regexp::Common::URI::http::BEGIN@10
# spent 32µs making 1 call to vars::import |
| 11 | 1 | 1µ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 | 4µ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 | 7µs | 1 | 105µs | ; # spent 105µs making 1 call to Regexp::Common::pattern |
| 27 | |||||
| 28 | 1 | 7µs | 1; | ||
| 29 | |||||
| 30 | __END__ |