← 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/opt/flows/lib/lib/perl5/Any/URI/Escape.pm
StatementsExecuted 19 statements in 302µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11170µs70µsAny::URI::Escape::::BEGIN@17Any::URI::Escape::BEGIN@17
11114µs28µsAny::URI::Escape::::BEGIN@3Any::URI::Escape::BEGIN@3
11110µs76µsAny::URI::Escape::::BEGIN@14Any::URI::Escape::BEGIN@14
1119µs13µsAny::URI::Escape::::BEGIN@4Any::URI::Escape::BEGIN@4
1118µs20µsAny::URI::Escape::::BEGIN@33Any::URI::Escape::BEGIN@33
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Any::URI::Escape;
2
3228µs242µs
# spent 28µs (14+14) within Any::URI::Escape::BEGIN@3 which was called: # once (14µs+14µs) by Search::Elasticsearch::Util::API::Path::BEGIN@5 at line 3
use strict;
# spent 28µs making 1 call to Any::URI::Escape::BEGIN@3 # spent 14µs making 1 call to strict::import
4245µs217µs
# spent 13µs (9+4) within Any::URI::Escape::BEGIN@4 which was called: # once (9µs+4µs) by Search::Elasticsearch::Util::API::Path::BEGIN@5 at line 4
use warnings;
# spent 13µs making 1 call to Any::URI::Escape::BEGIN@4 # spent 4µs making 1 call to warnings::import
5
61400nsour $VERSION = 0.01;
7
8=head1 NAME
9
10Any::URI::Escape - Load URI::Escape::XS preferentially over URI::Escape
11
12=cut
13
14285µs2142µs
# spent 76µs (10+66) within Any::URI::Escape::BEGIN@14 which was called: # once (10µs+66µs) by Search::Elasticsearch::Util::API::Path::BEGIN@5 at line 14
use base 'Exporter';
# spent 76µs making 1 call to Any::URI::Escape::BEGIN@14 # spent 66µs making 1 call to base::import
1511µsour @EXPORT = qw( uri_escape uri_unescape );
16
17
# spent 70µs within Any::URI::Escape::BEGIN@17 which was called: # once (70µs+0s) by Search::Elasticsearch::Util::API::Path::BEGIN@5 at line 37
BEGIN {
18
19116µs eval 'require URI::Escape::XS';
# spent 40µs executing statements in string eval
20
211200ns my $pkg;
221400ns if ($@) {
23
24 # xs version not installed, use URI::Escape
251500ns require URI::Escape;
261600ns $pkg = 'URI::Escape';
27
28 }
29 else {
30
31 $pkg = 'URI::Escape::XS';
32 }
33265µs232µs
# spent 20µs (8+12) within Any::URI::Escape::BEGIN@33 which was called: # once (8µs+12µs) by Search::Elasticsearch::Util::API::Path::BEGIN@5 at line 33
no strict 'refs';
# spent 20µs making 1 call to Any::URI::Escape::BEGIN@33 # spent 12µs making 1 call to strict::unimport
341200ns my $class = __PACKAGE__;
3515µs *{"$class\::uri_escape"} = *{"$pkg\::uri_escape"};
3618µs *{"$class\::uri_unescape"} = *{"$pkg\::uri_unescape"};
37142µs170µs}
# spent 70µs making 1 call to Any::URI::Escape::BEGIN@17
38
39
4013µs1;
41
42=head1 SYNOPSIS
43
44 use Any::URI::Escape;
45 $escaped_url = uri_escape($url);
46
47 # URI::Escape::XS will be used instead of URI::Escape if it is installed.
48
49=head1 DESCRIPTION
50
51URI::Escape is great, but URI::Escape::XS is faster. This module loads
52URI::Escape::XS and imports the two most common methods if XS is installed.
53
54The insides of this module aren't completely shaken out yet, so patches
55welcome.
56
57=head1 SEE ALSO
58
59L<URI::Escape>
60
61L<URI::Escape::XS>
62
63=head1 AUTHOR
64
65Fred Moyer, E<lt>fred@redhotpenguin.comE<gt>
66
67=head1 COPYRIGHT AND LICENSE
68
69Copyright (C) 2010 by Fred Moyer
70
71This library is free software; you can redistribute it and/or modify
72it under the same terms as Perl itself, either Perl version 5.12.0 or,
73at your option, any later version of Perl 5 you may have available.
74
75
76=cut