← Index
NYTProf Performance Profile   « block view • line view • sub view »
For reply.pl
  Run on Thu Oct 21 22:40:13 2010
Reported on Thu Oct 21 22:44:39 2010

Filename/home/hinrik/perl5/perlbrew/perls/perl-5.13.5/lib/site_perl/5.13.5/Regexp/Common/URI/RFC1808.pm
StatementsExecuted 60 statements in 739µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11126µs52µsRegexp::Common::URI::RFC1808::::BEGIN@8Regexp::Common::URI::RFC1808::BEGIN@8
11117µs785µsRegexp::Common::URI::RFC1808::::BEGIN@40Regexp::Common::URI::RFC1808::BEGIN@40
11114µs48µsRegexp::Common::URI::RFC1808::::BEGIN@16Regexp::Common::URI::RFC1808::BEGIN@16
11112µs12µsRegexp::Common::URI::RFC1808::::BEGIN@27Regexp::Common::URI::RFC1808::BEGIN@27
11112µs17µsRegexp::Common::URI::RFC1808::::BEGIN@13Regexp::Common::URI::RFC1808::BEGIN@13
11111µs21µsRegexp::Common::URI::RFC1808::::BEGIN@14Regexp::Common::URI::RFC1808::BEGIN@14
11111µs112µsRegexp::Common::URI::RFC1808::::BEGIN@19Regexp::Common::URI::RFC1808::BEGIN@19
1116µs6µsRegexp::Common::URI::RFC1808::::BEGIN@21Regexp::Common::URI::RFC1808::BEGIN@21
1116µs6µsRegexp::Common::URI::RFC1808::::BEGIN@3Regexp::Common::URI::RFC1808::BEGIN@3
0000s0sRegexp::Common::URI::RFC1808::::__ANON__[:9]Regexp::Common::URI::RFC1808::__ANON__[:9]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Regexp::Common::URI::RFC1808;
2
3
# spent 6µs within Regexp::Common::URI::RFC1808::BEGIN@3 which was called: # once (6µs+0s) by Regexp::Common::URI::gopher::BEGIN@6 at line 11
BEGIN {
4 # This makes sure 'use warnings' doesn't bomb out on 5.005_*;
5 # warnings won't be enabled on those old versions though.
617µs if ($] < 5.006 && !exists $INC {"warnings.pm"}) {
7 $INC {"warnings.pm"} = 1;
8246µs278µs
# spent 52µs (26+26) within Regexp::Common::URI::RFC1808::BEGIN@8 which was called: # once (26µs+26µs) by Regexp::Common::URI::gopher::BEGIN@6 at line 8
no strict 'refs';
# spent 52µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@8 # spent 26µs making 1 call to strict::unimport
9 *{"warnings::unimport"} = sub {0};
10 }
11119µs16µs}
# spent 6µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@3
12
13225µs222µs
# spent 17µs (12+5) within Regexp::Common::URI::RFC1808::BEGIN@13 which was called: # once (12µs+5µs) by Regexp::Common::URI::gopher::BEGIN@6 at line 13
use strict;
# spent 17µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@13 # spent 5µs making 1 call to strict::import
14227µs230µs
# spent 21µs (11+10) within Regexp::Common::URI::RFC1808::BEGIN@14 which was called: # once (11µs+10µs) by Regexp::Common::URI::gopher::BEGIN@6 at line 14
use warnings;
# spent 21µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@14 # spent 10µs making 1 call to warnings::import
15
16233µs283µs
# spent 48µs (14+34) within Regexp::Common::URI::RFC1808::BEGIN@16 which was called: # once (14µs+34µs) by Regexp::Common::URI::gopher::BEGIN@6 at line 16
use vars qw /$VERSION/;
# spent 48µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@16 # spent 34µs making 1 call to vars::import
1712µs$VERSION = '2010010201';
18
19226µs2214µs
# spent 112µs (11+102) within Regexp::Common::URI::RFC1808::BEGIN@19 which was called: # once (11µs+102µs) by Regexp::Common::URI::gopher::BEGIN@6 at line 19
use vars qw /@EXPORT @EXPORT_OK %EXPORT_TAGS @ISA/;
# spent 112µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@19 # spent 102µs making 1 call to vars::import
20
21264µs16µs
# spent 6µs within Regexp::Common::URI::RFC1808::BEGIN@21 which was called: # once (6µs+0s) by Regexp::Common::URI::gopher::BEGIN@6 at line 21
use Exporter ();
# spent 6µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@21
2216µs@ISA = qw /Exporter/;
23
24
2511µsmy %vars;
26
27
# spent 12µs within Regexp::Common::URI::RFC1808::BEGIN@27 which was called: # once (12µs+0s) by Regexp::Common::URI::gopher::BEGIN@6 at line 38
BEGIN {
28111µs $vars {low} = [qw /$punctuation $reserved_range $reserved $national
29 $extra $safe $digit $digits $hialpha $lowalpha
30 $alpha $alphadigit $hex $escape $unreserved_range
31 $unreserved $uchar $uchars $pchar_range $pchar
32 $pchars/],
33
34 $vars {parts} = [qw /$fragment $query $param $params $segment
35 $fsegment $path $net_loc $scheme $rel_path
36 $abs_path $net_path $relativeURL $generic_RL
37 $absoluteURL $URL/],
38129µs112µs}
# spent 12µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@27
39
402320µs21.55ms
# spent 785µs (17+768) within Regexp::Common::URI::RFC1808::BEGIN@40 which was called: # once (17µs+768µs) by Regexp::Common::URI::gopher::BEGIN@6 at line 40
use vars map {@$_} values %vars;
# spent 785µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@40 # spent 768µs making 1 call to vars::import
41
4212µs@EXPORT = qw /$host/;
43116µs@EXPORT_OK = map {@$_} values %vars;
4416µs%EXPORT_TAGS = (%vars, ALL => [@EXPORT_OK]);
45
46# RFC 1808, base definitions.
47
48# Lowlevel definitions.
4911µs$punctuation = '[<>#%"]';
5011µs$reserved_range = q [;/?:@&=];
5112µs$reserved = "[$reserved_range]";
5211µs$national = '[][{}|\\^~`]';
531700ns$extra = "[!*'(),]";
5411µs$safe = '[-$_.+]';
55
5611µs$digit = '[0-9]';
5711µs$digits = '[0-9]+';
5811µs$hialpha = '[A-Z]';
591800ns$lowalpha = '[a-z]';
6011µs$alpha = '[a-zA-Z]'; # lowalpha | hialpha
6111µs$alphadigit = '[a-zA-Z0-9]'; # alpha | digit
62
6311µs$hex = '[a-fA-F0-9]';
6412µs$escape = "(?:%$hex$hex)";
65
6611µs$unreserved_range = q [-a-zA-Z0-9$_.+!*'(),]; # alphadigit | safe | extra
6712µs$unreserved = "[$unreserved_range]";
6812µs$uchar = "(?:$unreserved|$escape)";
6912µs$uchars = "(?:(?:$unreserved+|$escape)*)";
70
7111µs$pchar_range = qq [$unreserved_range:\@&=];
7212µs$pchar = "(?:[$pchar_range]|$escape)";
7312µs$pchars = "(?:(?:[$pchar_range]+|$escape)*)";
74
75
76# Parts
7712µs$fragment = "(?:(?:[$unreserved_range$reserved_range]+|$escape)*)";
7812µs$query = "(?:(?:[$unreserved_range$reserved_range]+|$escape)*)";
79
8012µs$param = "(?:(?:[$pchar_range/]+|$escape)*)";
8112µs$params = "(?:$param(?:;$param)*)";
82
8312µs$segment = "(?:(?:[$pchar_range]+|$escape)*)";
8412µs$fsegment = "(?:(?:[$pchar_range]+|$escape)+)";
8512µs$path = "(?:$fsegment(?:/$segment)*)";
86
8712µs$net_loc = "(?:(?:[$pchar_range;?]+|$escape)*)";
8812µs$scheme = "(?:(?:[-a-zA-Z0-9+.]+|$escape)+)";
89
9012µs$rel_path = "(?:$path?(?:;$params)?(?:?$query)?)";
9112µs$abs_path = "(?:/$rel_path)";
9212µs$net_path = "(?://$net_loc$abs_path?)";
93
9413µs$relativeURL = "(?:$net_path|$abs_path|$rel_path)";
9514µs$generic_RL = "(?:$scheme:$relativeURL)";
9615µs$absoluteURL = "(?:$generic_RL|" .
97 "(?:$scheme:(?:[$unreserved_range$reserved_range]+|$escape)*))";
9816µs$URL = "(?:(?:$absoluteURL|$relativeURL)(?:#$fragment)?)";
99
100
101131µs1;
102
103__END__