Filename | /usr/share/perl5/URI.pm |
Statements | Executed 108 statements in 2.58ms |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
2 | 1 | 1 | 4.20ms | 4.46ms | implementor | URI::
1 | 1 | 1 | 1.01ms | 1.04ms | BEGIN@22 | URI::
1 | 1 | 1 | 101µs | 117µs | _scheme | URI::
9 | 5 | 1 | 71µs | 71µs | CORE:regcomp (opcode) | URI::
2 | 2 | 1 | 50µs | 7.54ms | new | URI::
2 | 1 | 1 | 30µs | 54µs | _uric_escape | URI::
2 | 1 | 1 | 24µs | 3.00ms | _init | URI::
1 | 1 | 1 | 15µs | 67µs | BEGIN@24 | URI::
6 | 2 | 2 | 13µs | 13µs | __ANON__[:24] | URI::
7 | 4 | 1 | 13µs | 13µs | CORE:match (opcode) | URI::
1 | 1 | 1 | 12µs | 26µs | BEGIN@3 | URI::
2 | 1 | 1 | 9µs | 9µs | clone | URI::
1 | 1 | 1 | 9µs | 38µs | BEGIN@4 | URI::
1 | 1 | 1 | 9µs | 22µs | BEGIN@128 | URI::
1 | 1 | 1 | 9µs | 126µs | scheme | URI::
13 | 8 | 1 | 9µs | 9µs | CORE:subst (opcode) | URI::
1 | 1 | 1 | 8µs | 71µs | BEGIN@13 | URI::
1 | 1 | 1 | 8µs | 46µs | BEGIN@7 | URI::
1 | 1 | 1 | 4µs | 4µs | BEGIN@21 | URI::
1 | 1 | 1 | 2µs | 2µs | _init_implementor | URI::
0 | 0 | 0 | 0s | 0s | STORABLE_freeze | URI::
0 | 0 | 0 | 0s | 0s | STORABLE_thaw | URI::
0 | 0 | 0 | 0s | 0s | __ANON__[:25] | URI::
0 | 0 | 0 | 0s | 0s | __ANON__[:26] | URI::
0 | 0 | 0 | 0s | 0s | _no_scheme_ok | URI::
0 | 0 | 0 | 0s | 0s | _obj_eq | URI::
0 | 0 | 0 | 0s | 0s | abs | URI::
0 | 0 | 0 | 0s | 0s | as_iri | URI::
0 | 0 | 0 | 0s | 0s | as_string | URI::
0 | 0 | 0 | 0s | 0s | canonical | URI::
0 | 0 | 0 | 0s | 0s | eq | URI::
0 | 0 | 0 | 0s | 0s | fragment | URI::
0 | 0 | 0 | 0s | 0s | new_abs | URI::
0 | 0 | 0 | 0s | 0s | opaque | URI::
0 | 0 | 0 | 0s | 0s | rel | URI::
0 | 0 | 0 | 0s | 0s | secure | URI::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package URI; | ||||
2 | |||||
3 | 2 | 34µs | 2 | 40µs | # spent 26µs (12+14) within URI::BEGIN@3 which was called:
# once (12µs+14µs) by Search::Elasticsearch::Role::Logger::BEGIN@5 at line 3 # spent 26µs making 1 call to URI::BEGIN@3
# spent 14µs making 1 call to strict::import |
4 | 2 | 41µs | 2 | 66µs | # spent 38µs (9+29) within URI::BEGIN@4 which was called:
# once (9µs+29µs) by Search::Elasticsearch::Role::Logger::BEGIN@5 at line 4 # spent 38µs making 1 call to URI::BEGIN@4
# spent 29µs making 1 call to vars::import |
5 | 1 | 700ns | $VERSION = "1.60"; | ||
6 | |||||
7 | 2 | 42µs | 2 | 85µs | # spent 46µs (8+38) within URI::BEGIN@7 which was called:
# once (8µs+38µs) by Search::Elasticsearch::Role::Logger::BEGIN@5 at line 7 # spent 46µs making 1 call to URI::BEGIN@7
# spent 38µs making 1 call to vars::import |
8 | |||||
9 | 1 | 200ns | my %implements; # mapping from scheme to implementor class | ||
10 | |||||
11 | # Some "official" character classes | ||||
12 | |||||
13 | 2 | 73µs | 2 | 134µs | # spent 71µs (8+63) within URI::BEGIN@13 which was called:
# once (8µs+63µs) by Search::Elasticsearch::Role::Logger::BEGIN@5 at line 13 # spent 71µs making 1 call to URI::BEGIN@13
# spent 63µs making 1 call to vars::import |
14 | 1 | 200ns | $reserved = q(;/?:@&=+$,[]); | ||
15 | 1 | 200ns | $mark = q(-_.!~*'()); #'; emacs | ||
16 | 1 | 1µs | $unreserved = "A-Za-z0-9\Q$mark\E"; | ||
17 | 1 | 800ns | $uric = quotemeta($reserved) . $unreserved . "%"; | ||
18 | |||||
19 | 1 | 200ns | $scheme_re = '[a-zA-Z][a-zA-Z0-9.+\-]*'; | ||
20 | |||||
21 | 2 | 24µs | 1 | 4µs | # spent 4µs within URI::BEGIN@21 which was called:
# once (4µs+0s) by Search::Elasticsearch::Role::Logger::BEGIN@5 at line 21 # spent 4µs making 1 call to URI::BEGIN@21 |
22 | 2 | 186µs | 1 | 1.04ms | # spent 1.04ms (1.01+33µs) within URI::BEGIN@22 which was called:
# once (1.01ms+33µs) by Search::Elasticsearch::Role::Logger::BEGIN@5 at line 22 # spent 1.04ms making 1 call to URI::BEGIN@22 |
23 | |||||
24 | 6 | 21µs | # spent 13µs within URI::__ANON__[/usr/share/perl5/URI.pm:24] which was called 6 times, avg 2µs/call:
# 4 times (9µs+0s) by Search::Elasticsearch::Role::Cxn::HTTP::stringify at line 21 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Cxn/HTTP.pm, avg 2µs/call
# 2 times (4µs+0s) by Search::Elasticsearch::Cxn::HTTPTiny::perform_request at line 34 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Cxn/HTTPTiny.pm, avg 2µs/call
# spent 67µs (15+52) within URI::BEGIN@24 which was called:
# once (15µs+52µs) by Search::Elasticsearch::Role::Logger::BEGIN@5 at line 28 | ||
25 | '==' => sub { _obj_eq(@_) }, | ||||
26 | '!=' => sub { !_obj_eq(@_) }, | ||||
27 | 1 | 14µs | 1 | 52µs | fallback => 1, # spent 52µs making 1 call to overload::import |
28 | 1 | 562µs | 1 | 67µs | ); # spent 67µs making 1 call to URI::BEGIN@24 |
29 | |||||
30 | # Check if two objects are the same object | ||||
31 | sub _obj_eq { | ||||
32 | return overload::StrVal($_[0]) eq overload::StrVal($_[1]); | ||||
33 | } | ||||
34 | |||||
35 | sub new | ||||
36 | # spent 7.54ms (50µs+7.49) within URI::new which was called 2 times, avg 3.77ms/call:
# once (34µs+7.38ms) by Search::Elasticsearch::Role::Cxn::HTTP::BUILDARGS at line 39 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Cxn/HTTP.pm
# once (17µs+108µs) by Search::Elasticsearch::Role::Cxn::HTTP::BUILDARGS at line 80 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Cxn/HTTP.pm | ||||
37 | 2 | 1µs | my($class, $uri, $scheme) = @_; | ||
38 | |||||
39 | 2 | 1µs | $uri = defined ($uri) ? "$uri" : ""; # stringify | ||
40 | # Get rid of potential wrapping | ||||
41 | 2 | 7µs | 2 | 1µs | $uri =~ s/^<(?:URL:)?(.*)>$/$1/; # # spent 1µs making 2 calls to URI::CORE:subst, avg 550ns/call |
42 | 2 | 4µs | 2 | 600ns | $uri =~ s/^"(.*)"$/$1/; # spent 600ns making 2 calls to URI::CORE:subst, avg 300ns/call |
43 | 2 | 6µs | 2 | 2µs | $uri =~ s/^\s+//; # spent 2µs making 2 calls to URI::CORE:subst, avg 1µs/call |
44 | 2 | 5µs | 2 | 2µs | $uri =~ s/\s+$//; # spent 2µs making 2 calls to URI::CORE:subst, avg 750ns/call |
45 | |||||
46 | 2 | 300ns | my $impclass; | ||
47 | 2 | 35µs | 4 | 20µs | if ($uri =~ m/^($scheme_re):/so) { # spent 16µs making 2 calls to URI::CORE:regcomp, avg 8µs/call
# spent 4µs making 2 calls to URI::CORE:match, avg 2µs/call |
48 | $scheme = $1; | ||||
49 | } | ||||
50 | else { | ||||
51 | if (($impclass = ref($scheme))) { | ||||
52 | $scheme = $scheme->scheme; | ||||
53 | } | ||||
54 | elsif ($scheme && $scheme =~ m/^($scheme_re)(?::|$)/o) { | ||||
55 | $scheme = $1; | ||||
56 | } | ||||
57 | } | ||||
58 | $impclass ||= implementor($scheme) || | ||||
59 | 2 | 4µs | 2 | 4.46ms | do { # spent 4.46ms making 2 calls to URI::implementor, avg 2.23ms/call |
60 | require URI::_foreign; | ||||
61 | $impclass = 'URI::_foreign'; | ||||
62 | }; | ||||
63 | |||||
64 | 2 | 12µs | 2 | 3.00ms | return $impclass->_init($uri, $scheme); # spent 3.00ms making 2 calls to URI::_init, avg 1.50ms/call |
65 | } | ||||
66 | |||||
67 | |||||
68 | sub new_abs | ||||
69 | { | ||||
70 | my($class, $uri, $base) = @_; | ||||
71 | $uri = $class->new($uri, $base); | ||||
72 | $uri->abs($base); | ||||
73 | } | ||||
74 | |||||
75 | |||||
76 | sub _init | ||||
77 | # spent 3.00ms (24µs+2.98) within URI::_init which was called 2 times, avg 1.50ms/call:
# 2 times (24µs+2.98ms) by URI::new at line 64, avg 1.50ms/call | ||||
78 | 2 | 700ns | my $class = shift; | ||
79 | 2 | 1µs | my($str, $scheme) = @_; | ||
80 | # find all funny characters and encode the bytes. | ||||
81 | 2 | 4µs | 2 | 2.97ms | $str = $class->_uric_escape($str); # spent 2.97ms making 2 calls to URI::_server::_uric_escape, avg 1.48ms/call |
82 | 2 | 25µs | 4 | 15µs | $str = "$scheme:$str" unless $str =~ /^$scheme_re:/o || # spent 11µs making 2 calls to URI::CORE:regcomp, avg 6µs/call
# spent 4µs making 2 calls to URI::CORE:match, avg 2µs/call |
83 | $class->_no_scheme_ok; | ||||
84 | 2 | 3µs | my $self = bless \$str, $class; | ||
85 | 2 | 6µs | $self; | ||
86 | } | ||||
87 | |||||
88 | |||||
89 | sub _uric_escape | ||||
90 | # spent 54µs (30+24) within URI::_uric_escape which was called 2 times, avg 27µs/call:
# 2 times (30µs+24µs) by URI::_server::_uric_escape at line 18 of URI/_server.pm, avg 27µs/call | ||||
91 | 2 | 1µs | my($class, $str) = @_; | ||
92 | 2 | 31µs | 4 | 22µs | $str =~ s*([^$uric\#])* URI::Escape::escape_char($1) *ego; # spent 20µs making 2 calls to URI::CORE:regcomp, avg 10µs/call
# spent 2µs making 2 calls to URI::CORE:subst, avg 1µs/call |
93 | 2 | 18µs | 2 | 2µs | utf8::downgrade($str); # spent 2µs making 2 calls to utf8::downgrade, avg 1µs/call |
94 | 2 | 6µs | return $str; | ||
95 | } | ||||
96 | |||||
97 | |||||
98 | sub implementor | ||||
99 | # spent 4.46ms (4.20+260µs) within URI::implementor which was called 2 times, avg 2.23ms/call:
# 2 times (4.20ms+260µs) by URI::new at line 59, avg 2.23ms/call | ||||
100 | 2 | 1µs | my($scheme, $impclass) = @_; | ||
101 | 2 | 21µs | 4 | 12µs | if (!$scheme || $scheme !~ /\A$scheme_re\z/o) { # spent 10µs making 2 calls to URI::CORE:regcomp, avg 5µs/call
# spent 2µs making 2 calls to URI::CORE:match, avg 1µs/call |
102 | require URI::_generic; | ||||
103 | return "URI::_generic"; | ||||
104 | } | ||||
105 | |||||
106 | 2 | 1µs | $scheme = lc($scheme); | ||
107 | |||||
108 | 2 | 200ns | if ($impclass) { | ||
109 | # Set the implementor class for a given scheme | ||||
110 | my $old = $implements{$scheme}; | ||||
111 | $impclass->_init_implementor($scheme); | ||||
112 | $implements{$scheme} = $impclass; | ||||
113 | return $old; | ||||
114 | } | ||||
115 | |||||
116 | 2 | 1µs | my $ic = $implements{$scheme}; | ||
117 | 2 | 3µs | return $ic if $ic; | ||
118 | |||||
119 | # scheme not yet known, look for internal or | ||||
120 | # preloaded (with 'use') implementation | ||||
121 | 1 | 400ns | $ic = "URI::$scheme"; # default location | ||
122 | |||||
123 | # turn scheme into a valid perl identifier by a simple transformation... | ||||
124 | 1 | 3µs | 1 | 500ns | $ic =~ s/\+/_P/g; # spent 500ns making 1 call to URI::CORE:subst |
125 | 1 | 3µs | 1 | 200ns | $ic =~ s/\./_O/g; # spent 200ns making 1 call to URI::CORE:subst |
126 | 1 | 3µs | 1 | 200ns | $ic =~ s/\-/_/g; # spent 200ns making 1 call to URI::CORE:subst |
127 | |||||
128 | 2 | 1.18ms | 2 | 35µs | # spent 22µs (9+13) within URI::BEGIN@128 which was called:
# once (9µs+13µs) by Search::Elasticsearch::Role::Logger::BEGIN@5 at line 128 # spent 22µs making 1 call to URI::BEGIN@128
# spent 13µs making 1 call to strict::unimport |
129 | # check we actually have one for the scheme: | ||||
130 | 1 | 5µs | unless (@{"${ic}::ISA"}) { | ||
131 | # Try to load it | ||||
132 | 1 | 22µs | eval "require $ic"; # spent 93µs executing statements in string eval | ||
133 | 1 | 200ns | die $@ if $@ && $@ !~ /Can\'t locate.*in \@INC/; | ||
134 | 1 | 2µs | return unless @{"${ic}::ISA"}; | ||
135 | } | ||||
136 | |||||
137 | 1 | 6µs | 1 | 2µs | $ic->_init_implementor($scheme); # spent 2µs making 1 call to URI::_init_implementor |
138 | 1 | 700ns | $implements{$scheme} = $ic; | ||
139 | 1 | 4µs | $ic; | ||
140 | } | ||||
141 | |||||
142 | |||||
143 | sub _init_implementor | ||||
144 | # spent 2µs within URI::_init_implementor which was called:
# once (2µs+0s) by URI::implementor at line 137 | ||||
145 | 1 | 5µs | my($class, $scheme) = @_; | ||
146 | # Remember that one implementor class may actually | ||||
147 | # serve to implement several URI schemes. | ||||
148 | } | ||||
149 | |||||
150 | |||||
151 | sub clone | ||||
152 | # spent 9µs within URI::clone which was called 2 times, avg 5µs/call:
# 2 times (9µs+0s) by Search::Elasticsearch::Role::Cxn::HTTP::build_uri at line 91 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Cxn/HTTP.pm, avg 5µs/call | ||||
153 | 2 | 1µs | my $self = shift; | ||
154 | 2 | 2µs | my $other = $$self; | ||
155 | 2 | 9µs | bless \$other, ref $self; | ||
156 | } | ||||
157 | |||||
158 | |||||
159 | sub _no_scheme_ok { 0 } | ||||
160 | |||||
161 | sub _scheme | ||||
162 | # spent 117µs (101+16) within URI::_scheme which was called:
# once (101µs+16µs) by URI::scheme at line 195 | ||||
163 | 1 | 200ns | my $self = shift; | ||
164 | |||||
165 | 1 | 500ns | unless (@_) { | ||
166 | 1 | 113µs | 2 | 16µs | return unless $$self =~ /^($scheme_re):/o; # spent 14µs making 1 call to URI::CORE:regcomp
# spent 2µs making 1 call to URI::CORE:match |
167 | 1 | 5µs | return $1; | ||
168 | } | ||||
169 | |||||
170 | my $old; | ||||
171 | my $new = shift; | ||||
172 | if (defined($new) && length($new)) { | ||||
173 | Carp::croak("Bad scheme '$new'") unless $new =~ /^$scheme_re$/o; | ||||
174 | $old = $1 if $$self =~ s/^($scheme_re)://o; | ||||
175 | my $newself = URI->new("$new:$$self"); | ||||
176 | $$self = $$newself; | ||||
177 | bless $self, ref($newself); | ||||
178 | } | ||||
179 | else { | ||||
180 | if ($self->_no_scheme_ok) { | ||||
181 | $old = $1 if $$self =~ s/^($scheme_re)://o; | ||||
182 | Carp::carp("Oops, opaque part now look like scheme") | ||||
183 | if $^W && $$self =~ m/^$scheme_re:/o | ||||
184 | } | ||||
185 | else { | ||||
186 | $old = $1 if $$self =~ m/^($scheme_re):/o; | ||||
187 | } | ||||
188 | } | ||||
189 | |||||
190 | return $old; | ||||
191 | } | ||||
192 | |||||
193 | sub scheme | ||||
194 | # spent 126µs (9+117) within URI::scheme which was called:
# once (9µs+117µs) by Search::Elasticsearch::Role::Cxn::HTTP::BUILDARGS at line 40 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Cxn/HTTP.pm | ||||
195 | 1 | 4µs | 1 | 117µs | my $scheme = shift->_scheme(@_); # spent 117µs making 1 call to URI::_scheme |
196 | 1 | 400ns | return unless defined $scheme; | ||
197 | 1 | 4µs | lc($scheme); | ||
198 | } | ||||
199 | |||||
200 | |||||
201 | sub opaque | ||||
202 | { | ||||
203 | my $self = shift; | ||||
204 | |||||
205 | unless (@_) { | ||||
206 | $$self =~ /^(?:$scheme_re:)?([^\#]*)/o or die; | ||||
207 | return $1; | ||||
208 | } | ||||
209 | |||||
210 | $$self =~ /^($scheme_re:)? # optional scheme | ||||
211 | ([^\#]*) # opaque | ||||
212 | (\#.*)? # optional fragment | ||||
213 | $/sx or die; | ||||
214 | |||||
215 | my $old_scheme = $1; | ||||
216 | my $old_opaque = $2; | ||||
217 | my $old_frag = $3; | ||||
218 | |||||
219 | my $new_opaque = shift; | ||||
220 | $new_opaque = "" unless defined $new_opaque; | ||||
221 | $new_opaque =~ s/([^$uric])/ URI::Escape::escape_char($1)/ego; | ||||
222 | utf8::downgrade($new_opaque); | ||||
223 | |||||
224 | $$self = defined($old_scheme) ? $old_scheme : ""; | ||||
225 | $$self .= $new_opaque; | ||||
226 | $$self .= $old_frag if defined $old_frag; | ||||
227 | |||||
228 | $old_opaque; | ||||
229 | } | ||||
230 | |||||
231 | 1 | 2µs | *path = \&opaque; # alias | ||
232 | |||||
233 | |||||
234 | sub fragment | ||||
235 | { | ||||
236 | my $self = shift; | ||||
237 | unless (@_) { | ||||
238 | return unless $$self =~ /\#(.*)/s; | ||||
239 | return $1; | ||||
240 | } | ||||
241 | |||||
242 | my $old; | ||||
243 | $old = $1 if $$self =~ s/\#(.*)//s; | ||||
244 | |||||
245 | my $new_frag = shift; | ||||
246 | if (defined $new_frag) { | ||||
247 | $new_frag =~ s/([^$uric])/ URI::Escape::escape_char($1) /ego; | ||||
248 | utf8::downgrade($new_frag); | ||||
249 | $$self .= "#$new_frag"; | ||||
250 | } | ||||
251 | $old; | ||||
252 | } | ||||
253 | |||||
254 | |||||
255 | sub as_string | ||||
256 | { | ||||
257 | my $self = shift; | ||||
258 | $$self; | ||||
259 | } | ||||
260 | |||||
261 | |||||
262 | sub as_iri | ||||
263 | { | ||||
264 | my $self = shift; | ||||
265 | my $str = $$self; | ||||
266 | if ($str =~ s/%([89a-fA-F][0-9a-fA-F])/chr(hex($1))/eg) { | ||||
267 | # All this crap because the more obvious: | ||||
268 | # | ||||
269 | # Encode::decode("UTF-8", $str, sub { sprintf "%%%02X", shift }) | ||||
270 | # | ||||
271 | # doesn't work before Encode 2.39. Wait for a standard release | ||||
272 | # to bundle that version. | ||||
273 | |||||
274 | require Encode; | ||||
275 | my $enc = Encode::find_encoding("UTF-8"); | ||||
276 | my $u = ""; | ||||
277 | while (length $str) { | ||||
278 | $u .= $enc->decode($str, Encode::FB_QUIET()); | ||||
279 | if (length $str) { | ||||
280 | # escape next char | ||||
281 | $u .= URI::Escape::escape_char(substr($str, 0, 1, "")); | ||||
282 | } | ||||
283 | } | ||||
284 | $str = $u; | ||||
285 | } | ||||
286 | return $str; | ||||
287 | } | ||||
288 | |||||
289 | |||||
290 | sub canonical | ||||
291 | { | ||||
292 | # Make sure scheme is lowercased, that we don't escape unreserved chars, | ||||
293 | # and that we use upcase escape sequences. | ||||
294 | |||||
295 | my $self = shift; | ||||
296 | my $scheme = $self->_scheme || ""; | ||||
297 | my $uc_scheme = $scheme =~ /[A-Z]/; | ||||
298 | my $esc = $$self =~ /%[a-fA-F0-9]{2}/; | ||||
299 | return $self unless $uc_scheme || $esc; | ||||
300 | |||||
301 | my $other = $self->clone; | ||||
302 | if ($uc_scheme) { | ||||
303 | $other->_scheme(lc $scheme); | ||||
304 | } | ||||
305 | if ($esc) { | ||||
306 | $$other =~ s{%([0-9a-fA-F]{2})} | ||||
307 | { my $a = chr(hex($1)); | ||||
308 | $a =~ /^[$unreserved]\z/o ? $a : "%\U$1" | ||||
309 | }ge; | ||||
310 | } | ||||
311 | return $other; | ||||
312 | } | ||||
313 | |||||
314 | # Compare two URIs, subclasses will provide a more correct implementation | ||||
315 | sub eq { | ||||
316 | my($self, $other) = @_; | ||||
317 | $self = URI->new($self, $other) unless ref $self; | ||||
318 | $other = URI->new($other, $self) unless ref $other; | ||||
319 | ref($self) eq ref($other) && # same class | ||||
320 | $self->canonical->as_string eq $other->canonical->as_string; | ||||
321 | } | ||||
322 | |||||
323 | # generic-URI transformation methods | ||||
324 | sub abs { $_[0]; } | ||||
325 | sub rel { $_[0]; } | ||||
326 | |||||
327 | sub secure { 0 } | ||||
328 | |||||
329 | # help out Storable | ||||
330 | sub STORABLE_freeze { | ||||
331 | my($self, $cloning) = @_; | ||||
332 | return $$self; | ||||
333 | } | ||||
334 | |||||
335 | sub STORABLE_thaw { | ||||
336 | my($self, $cloning, $str) = @_; | ||||
337 | $$self = $str; | ||||
338 | } | ||||
339 | |||||
340 | 1 | 6µs | 1; | ||
341 | |||||
342 | __END__ | ||||
# spent 13µs within URI::CORE:match which was called 7 times, avg 2µs/call:
# 2 times (4µs+0s) by URI::new at line 47, avg 2µs/call
# 2 times (4µs+0s) by URI::_init at line 82, avg 2µs/call
# 2 times (2µs+0s) by URI::implementor at line 101, avg 1µs/call
# once (2µs+0s) by URI::_scheme at line 166 | |||||
# spent 71µs within URI::CORE:regcomp which was called 9 times, avg 8µs/call:
# 2 times (20µs+0s) by URI::_uric_escape at line 92, avg 10µs/call
# 2 times (16µs+0s) by URI::new at line 47, avg 8µs/call
# 2 times (11µs+0s) by URI::_init at line 82, avg 6µs/call
# 2 times (10µs+0s) by URI::implementor at line 101, avg 5µs/call
# once (14µs+0s) by URI::_scheme at line 166 | |||||
# spent 9µs within URI::CORE:subst which was called 13 times, avg 677ns/call:
# 2 times (2µs+0s) by URI::_uric_escape at line 92, avg 1µs/call
# 2 times (2µs+0s) by URI::new at line 43, avg 1µs/call
# 2 times (2µs+0s) by URI::new at line 44, avg 750ns/call
# 2 times (1µs+0s) by URI::new at line 41, avg 550ns/call
# 2 times (600ns+0s) by URI::new at line 42, avg 300ns/call
# once (500ns+0s) by URI::implementor at line 124
# once (200ns+0s) by URI::implementor at line 125
# once (200ns+0s) by URI::implementor at line 126 |