← Index
NYTProf Performance Profile   « block view • line view • sub view »
For bin/hailo
  Run on Thu Oct 21 22:50:37 2010
Reported on Thu Oct 21 22:52:16 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 761µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11129µs54µsRegexp::Common::URI::RFC1808::::BEGIN@8Regexp::Common::URI::RFC1808::BEGIN@8
11116µs784µsRegexp::Common::URI::RFC1808::::BEGIN@40Regexp::Common::URI::RFC1808::BEGIN@40
11114µs14µsRegexp::Common::URI::RFC1808::::BEGIN@27Regexp::Common::URI::RFC1808::BEGIN@27
11111µs16µsRegexp::Common::URI::RFC1808::::BEGIN@13Regexp::Common::URI::RFC1808::BEGIN@13
11111µs20µsRegexp::Common::URI::RFC1808::::BEGIN@14Regexp::Common::URI::RFC1808::BEGIN@14
11111µs109µsRegexp::Common::URI::RFC1808::::BEGIN@19Regexp::Common::URI::RFC1808::BEGIN@19
11110µs44µsRegexp::Common::URI::RFC1808::::BEGIN@16Regexp::Common::URI::RFC1808::BEGIN@16
1117µs7µsRegexp::Common::URI::RFC1808::::BEGIN@3Regexp::Common::URI::RFC1808::BEGIN@3
1116µs6µsRegexp::Common::URI::RFC1808::::BEGIN@21Regexp::Common::URI::RFC1808::BEGIN@21
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 7µs within Regexp::Common::URI::RFC1808::BEGIN@3 which was called: # once (7µ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 54µs (29+25) within Regexp::Common::URI::RFC1808::BEGIN@8 which was called: # once (29µs+25µs) by Regexp::Common::URI::gopher::BEGIN@6 at line 8
no strict 'refs';
# spent 54µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@8 # spent 25µs making 1 call to strict::unimport
9 *{"warnings::unimport"} = sub {0};
10 }
11120µs17µs}
# spent 7µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@3
12
13226µs221µs
# spent 16µs (11+5) within Regexp::Common::URI::RFC1808::BEGIN@13 which was called: # once (11µs+5µs) by Regexp::Common::URI::gopher::BEGIN@6 at line 13
use strict;
# spent 16µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@13 # spent 5µs making 1 call to strict::import
14226µs229µs
# spent 20µs (11+9) within Regexp::Common::URI::RFC1808::BEGIN@14 which was called: # once (11µs+9µs) by Regexp::Common::URI::gopher::BEGIN@6 at line 14
use warnings;
# spent 20µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@14 # spent 9µs making 1 call to warnings::import
15
16238µs277µs
# spent 44µs (10+33) within Regexp::Common::URI::RFC1808::BEGIN@16 which was called: # once (10µs+33µs) by Regexp::Common::URI::gopher::BEGIN@6 at line 16
use vars qw /$VERSION/;
# spent 44µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@16 # spent 33µs making 1 call to vars::import
1712µs$VERSION = '2010010201';
18
19225µs2208µs
# spent 109µs (11+99) within Regexp::Common::URI::RFC1808::BEGIN@19 which was called: # once (11µs+99µs) by Regexp::Common::URI::gopher::BEGIN@6 at line 19
use vars qw /@EXPORT @EXPORT_OK %EXPORT_TAGS @ISA/;
# spent 109µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@19 # spent 99µs making 1 call to vars::import
20
21263µ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 14µs within Regexp::Common::URI::RFC1808::BEGIN@27 which was called: # once (14µs+0s) by Regexp::Common::URI::gopher::BEGIN@6 at line 38
BEGIN {
28114µ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/],
38130µs114µs}
# spent 14µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@27
39
402338µs21.55ms
# spent 784µs (16+767) within Regexp::Common::URI::RFC1808::BEGIN@40 which was called: # once (16µs+767µs) by Regexp::Common::URI::gopher::BEGIN@6 at line 40
use vars map {@$_} values %vars;
# spent 784µs making 1 call to Regexp::Common::URI::RFC1808::BEGIN@40 # spent 767µ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 = '[][{}|\\^~`]';
531800ns$extra = "[!*'(),]";
5411µs$safe = '[-$_.+]';
55
561700ns$digit = '[0-9]';
5711µs$digits = '[0-9]+';
581700ns$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
6711µs$unreserved = "[$unreserved_range]";
6812µs$uchar = "(?:$unreserved|$escape)";
6912µs$uchars = "(?:(?:$unreserved+|$escape)*)";
70
7112µ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)+)";
8515µs$path = "(?:$fsegment(?:/$segment)*)";
86
8712µs$net_loc = "(?:(?:[$pchar_range;?]+|$escape)*)";
8811µ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
9414µs$relativeURL = "(?:$net_path|$abs_path|$rel_path)";
9512µs$generic_RL = "(?:$scheme:$relativeURL)";
9616µs$absoluteURL = "(?:$generic_RL|" .
97 "(?:$scheme:(?:[$unreserved_range$reserved_range]+|$escape)*))";
9814µs$URL = "(?:(?:$absoluteURL|$relativeURL)(?:#$fragment)?)";
99
100
101131µs1;
102
103__END__