← Index
NYTProf Performance Profile   « line view »
For flows_to_es.pl
  Run on Mon May 9 23:27:59 2016
Reported on Mon May 9 23:28:09 2016

Filename/usr/share/perl5/URI/http.pm
StatementsExecuted 5 statements in 216µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11112µs27µsURI::http::::BEGIN@6URI::http::BEGIN@6
0000s0sURI::http::::canonicalURI::http::canonical
0000s0sURI::http::::default_portURI::http::default_port
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package URI::http;
2
3192µsrequire URI::_server;
417µs@ISA=qw(URI::_server);
5
62116µs241µs
# spent 27µs (12+14) within URI::http::BEGIN@6 which was called: # once (12µs+14µs) by URI::implementor at line 6
use strict;
# spent 27µs making 1 call to URI::http::BEGIN@6 # spent 14µs making 1 call to strict::import
7
8sub default_port { 80 }
9
10sub canonical
11{
12 my $self = shift;
13 my $other = $self->SUPER::canonical;
14
15 my $slash_path = defined($other->authority) &&
16 !length($other->path) && !defined($other->query);
17
18 if ($slash_path) {
19 $other = $other->clone if $other == $self;
20 $other->path("/");
21 }
22 $other;
23}
24
2512µs1;