| Filename | /home/hinrik/perl5/perlbrew/perls/perl-5.13.5/lib/site_perl/5.13.5/Regexp/Common/URI/ftp.pm |
| Statements | Executed 18 statements in 359µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 26µs | 111µs | Regexp::Common::URI::ftp::BEGIN@3 |
| 1 | 1 | 1 | 13µs | 205µs | Regexp::Common::URI::ftp::BEGIN@5 |
| 1 | 1 | 1 | 12µs | 47µs | Regexp::Common::URI::ftp::BEGIN@11 |
| 1 | 1 | 1 | 12µs | 22µs | Regexp::Common::URI::ftp::BEGIN@9 |
| 1 | 1 | 1 | 12µs | 17µs | Regexp::Common::URI::ftp::BEGIN@8 |
| 1 | 1 | 1 | 11µs | 57µs | Regexp::Common::URI::ftp::BEGIN@4 |
| 0 | 0 | 0 | 0s | 0s | Regexp::Common::URI::ftp::__ANON__[:35] |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Regexp::Common::URI::ftp; | ||||
| 2 | |||||
| 3 | 2 | 31µs | 2 | 111µs | # spent 111µs (26+84) within Regexp::Common::URI::ftp::BEGIN@3 which was called:
# once (26µs+84µs) by Regexp::Common::import at line 3 # spent 111µs making 1 call to Regexp::Common::URI::ftp::BEGIN@3
# spent 84µs making 1 call to Regexp::Common::import, recursion: max depth 1, sum of overlapping time 84µs |
| 4 | 2 | 30µs | 2 | 102µs | # spent 57µs (11+46) within Regexp::Common::URI::ftp::BEGIN@4 which was called:
# once (11µs+46µs) by Regexp::Common::import at line 4 # spent 57µs making 1 call to Regexp::Common::URI::ftp::BEGIN@4
# spent 46µs making 1 call to Exporter::import |
| 5 | 1 | 192µs | # spent 205µs (13+192) within Regexp::Common::URI::ftp::BEGIN@5 which was called:
# once (13µs+192µs) by Regexp::Common::import at line 6 # spent 192µs making 1 call to Exporter::import | ||
| 6 | 2 | 31µs | 1 | 205µs | $userinfo_no_colon/; # spent 205µs making 1 call to Regexp::Common::URI::ftp::BEGIN@5 |
| 7 | |||||
| 8 | 2 | 27µs | 2 | 21µs | # spent 17µs (12+5) within Regexp::Common::URI::ftp::BEGIN@8 which was called:
# once (12µs+5µs) by Regexp::Common::import at line 8 # spent 17µs making 1 call to Regexp::Common::URI::ftp::BEGIN@8
# spent 5µs making 1 call to strict::import |
| 9 | 2 | 32µs | 2 | 32µs | # spent 22µs (12+10) within Regexp::Common::URI::ftp::BEGIN@9 which was called:
# once (12µs+10µs) by Regexp::Common::import at line 9 # spent 22µs making 1 call to Regexp::Common::URI::ftp::BEGIN@9
# spent 10µs making 1 call to warnings::import |
| 10 | |||||
| 11 | 2 | 173µs | 2 | 81µs | # spent 47µs (12+35) within Regexp::Common::URI::ftp::BEGIN@11 which was called:
# once (12µs+35µs) by Regexp::Common::import at line 11 # spent 47µs making 1 call to Regexp::Common::URI::ftp::BEGIN@11
# spent 34µs making 1 call to vars::import |
| 12 | 1 | 2µs | $VERSION = '2010010201'; | ||
| 13 | |||||
| 14 | |||||
| 15 | 1 | 5µs | my $ftp_uri = "(?k:(?k:ftp)://(?:(?k:$userinfo)(?k:)\@)?(?k:$host)" . | ||
| 16 | "(?::(?k:$port))?(?k:/(?k:(?k:$ftp_segments)" . | ||||
| 17 | "(?:;type=(?k:[AIai]))?))?)"; | ||||
| 18 | |||||
| 19 | 1 | 4µs | my $ftp_uri_password = | ||
| 20 | "(?k:(?k:ftp)://(?:(?k:$userinfo_no_colon)" . | ||||
| 21 | "(?::(?k:$userinfo_no_colon))?\@)?(?k:$host)" . | ||||
| 22 | "(?::(?k:$port))?(?k:/(?k:(?k:$ftp_segments)" . | ||||
| 23 | "(?:;type=(?k:[AIai]))?))?)"; | ||||
| 24 | |||||
| 25 | 1 | 8µs | 1 | 11µs | register_uri FTP => $ftp_uri; # spent 11µs making 1 call to Regexp::Common::URI::register_uri |
| 26 | |||||
| 27 | pattern name => [qw (URI FTP), "-type=[AIai]", "-password="], | ||||
| 28 | create => sub { | ||||
| 29 | my $uri = exists $_ [1] -> {-password} && | ||||
| 30 | !defined $_ [1] -> {-password} ? $ftp_uri_password | ||||
| 31 | : $ftp_uri; | ||||
| 32 | my $type = $_ [1] -> {-type}; | ||||
| 33 | $uri =~ s/\[AIai\]/$type/; | ||||
| 34 | $uri; | ||||
| 35 | } | ||||
| 36 | 1 | 7µs | 1 | 128µs | ; # spent 128µs making 1 call to Regexp::Common::pattern |
| 37 | |||||
| 38 | |||||
| 39 | 1 | 10µs | 1; | ||
| 40 | |||||
| 41 | __END__ |