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 325µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 26µs | 105µs | BEGIN@3 | Regexp::Common::URI::ftp::
1 | 1 | 1 | 12µs | 54µs | BEGIN@4 | Regexp::Common::URI::ftp::
1 | 1 | 1 | 11µs | 192µs | BEGIN@5 | Regexp::Common::URI::ftp::
1 | 1 | 1 | 11µs | 16µs | BEGIN@8 | Regexp::Common::URI::ftp::
1 | 1 | 1 | 11µs | 19µs | BEGIN@9 | Regexp::Common::URI::ftp::
1 | 1 | 1 | 10µs | 43µs | BEGIN@11 | Regexp::Common::URI::ftp::
0 | 0 | 0 | 0s | 0s | __ANON__[:35] | Regexp::Common::URI::ftp::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Regexp::Common::URI::ftp; | ||||
2 | |||||
3 | 2 | 30µs | 2 | 105µs | # spent 105µs (26+80) within Regexp::Common::URI::ftp::BEGIN@3 which was called:
# once (26µs+80µs) by Regexp::Common::import at line 3 # spent 105µs making 1 call to Regexp::Common::URI::ftp::BEGIN@3
# spent 80µs making 1 call to Regexp::Common::import, recursion: max depth 1, sum of overlapping time 80µs |
4 | 2 | 31µs | 2 | 97µs | # spent 54µs (12+43) within Regexp::Common::URI::ftp::BEGIN@4 which was called:
# once (12µs+43µs) by Regexp::Common::import at line 4 # spent 54µs making 1 call to Regexp::Common::URI::ftp::BEGIN@4
# spent 43µs making 1 call to Exporter::import |
5 | 1 | 180µs | # spent 192µs (11+180) within Regexp::Common::URI::ftp::BEGIN@5 which was called:
# once (11µs+180µs) by Regexp::Common::import at line 6 # spent 180µs making 1 call to Exporter::import | ||
6 | 2 | 28µs | 1 | 192µs | $userinfo_no_colon/; # spent 192µs making 1 call to Regexp::Common::URI::ftp::BEGIN@5 |
7 | |||||
8 | 2 | 25µs | 2 | 21µs | # spent 16µs (11+5) within Regexp::Common::URI::ftp::BEGIN@8 which was called:
# once (11µs+5µs) by Regexp::Common::import at line 8 # spent 16µs making 1 call to Regexp::Common::URI::ftp::BEGIN@8
# spent 5µs making 1 call to strict::import |
9 | 2 | 27µs | 2 | 28µs | # spent 19µs (11+8) within Regexp::Common::URI::ftp::BEGIN@9 which was called:
# once (11µs+8µs) by Regexp::Common::import at line 9 # spent 19µs making 1 call to Regexp::Common::URI::ftp::BEGIN@9
# spent 8µs making 1 call to warnings::import |
10 | |||||
11 | 2 | 154µs | 2 | 75µs | # spent 43µs (10+32) within Regexp::Common::URI::ftp::BEGIN@11 which was called:
# once (10µs+32µs) by Regexp::Common::import at line 11 # spent 43µs making 1 call to Regexp::Common::URI::ftp::BEGIN@11
# spent 32µs making 1 call to vars::import |
12 | 1 | 2µs | $VERSION = '2010010201'; | ||
13 | |||||
14 | |||||
15 | 1 | 4µ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 | 4µs | 1 | 6µs | register_uri FTP => $ftp_uri; # spent 6µ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 | 6µs | 1 | 116µs | ; # spent 116µs making 1 call to Regexp::Common::pattern |
37 | |||||
38 | |||||
39 | 1 | 9µs | 1; | ||
40 | |||||
41 | __END__ |