← 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/Search/Elasticsearch/Role/Client.pm
StatementsExecuted 14 statements in 204µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11116µs328µsSearch::Elasticsearch::Role::Client::::BEGIN@3Search::Elasticsearch::Role::Client::BEGIN@3
11115µs6.71msSearch::Elasticsearch::Role::Client::::perform_requestSearch::Elasticsearch::Role::Client::perform_request
11110µs46µsSearch::Elasticsearch::Role::Client::::__ANON__[:3]Search::Elasticsearch::Role::Client::__ANON__[:3]
1119µs202µsSearch::Elasticsearch::Role::Client::::BEGIN@4Search::Elasticsearch::Role::Client::BEGIN@4
3323µs3µsSearch::Elasticsearch::Role::Client::::transportSearch::Elasticsearch::Role::Client::transport (xsub)
111600ns600nsSearch::Elasticsearch::Role::Client::::loggerSearch::Elasticsearch::Role::Client::logger (xsub)
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Search::Elasticsearch::Role::Client;
21500ns$Search::Elasticsearch::Role::Client::VERSION = '2.02';
3445µs3677µs
# spent 46µs (10+36) within Search::Elasticsearch::Role::Client::__ANON__[/opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Client.pm:3] which was called: # once (10µs+36µs) by import::into at line 34 of Import/Into.pm # spent 328µs (16+313) within Search::Elasticsearch::Role::Client::BEGIN@3 which was called: # once (16µs+313µs) by Module::Runtime::require_module at line 3
use Moo::Role;
# spent 328µs making 1 call to Search::Elasticsearch::Role::Client::BEGIN@3 # spent 313µs making 1 call to Moo::Role::import # spent 36µs making 1 call to strictures::import
42122µs2395µs
# spent 202µs (9+193) within Search::Elasticsearch::Role::Client::BEGIN@4 which was called: # once (9µs+193µs) by Module::Runtime::require_module at line 4
use namespace::clean;
# spent 202µs making 1 call to Search::Elasticsearch::Role::Client::BEGIN@4 # spent 193µs making 1 call to namespace::clean::import
5
611µs18µsrequires 'parse_request';
# spent 8µs making 1 call to Moo::Role::requires
7
812µs1139µshas 'transport' => ( is => 'ro', required => 1 );
# spent 139µs making 1 call to Moo::Role::has
911µs1112µshas 'logger' => ( is => 'ro', required => 1 );
# spent 112µs making 1 call to Moo::Role::has
10
11#===================================
12
# spent 6.71ms (15µs+6.70) within Search::Elasticsearch::Role::Client::perform_request which was called: # once (15µs+6.70ms) by Search::Elasticsearch::Role::Client::Direct::__ANON__[/opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Client/Direct.pm:102] at line 101 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Client/Direct.pm
sub perform_request {
13#===================================
141300ns my $self = shift;
1512µs1158µs my $request = $self->parse_request(@_);
16112µs26.54ms return $self->transport->perform_request($request);
# spent 6.54ms making 1 call to Search::Elasticsearch::Transport::perform_request # spent 1µs making 1 call to Search::Elasticsearch::Role::Client::transport
17}
18
1917µs1;
20
21=pod
22
23=encoding UTF-8
24
25=head1 NAME
26
27Search::Elasticsearch::Role::Client - Provides common functionality for Client implementations
28
29=head1 VERSION
30
31version 2.02
32
33=head1 DESCRIPTION
34
35This role provides a common C<perform_request()> method for Client
36implementations.
37
38=head1 METHODS
39
40=head2 C<perform_request()>
41
42This method takes whatever arguments it is passed and passes them directly to
43a C<parse_request()> method (which should be provided by Client implementations).
44The C<parse_request()> method should return a request suitable for passing
45to L<Search::Elasticsearch::Transport/perform_request()>.
46
47=head1 AUTHOR
48
49Clinton Gormley <drtech@cpan.org>
50
51=head1 COPYRIGHT AND LICENSE
52
53This software is Copyright (c) 2016 by Elasticsearch BV.
54
55This is free software, licensed under:
56
57 The Apache License, Version 2.0, January 2004
58
59=cut
60
61112µs1285µs__END__
 
# spent 600ns within Search::Elasticsearch::Role::Client::logger which was called: # once (600ns+0s) by Search::Elasticsearch::Role::Client::Direct::Main::_build_namespace at line 81 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Client/Direct/Main.pm
sub Search::Elasticsearch::Role::Client::logger; # xsub
# spent 3µs within Search::Elasticsearch::Role::Client::transport which was called 3 times, avg 1µs/call: # once (1µs+0s) by Search::Elasticsearch::Role::Client::perform_request at line 16 # once (1µs+0s) by Search::Elasticsearch::Role::Client::Direct::Main::_build_namespace at line 81 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Client/Direct/Main.pm # once (1µs+0s) by Search::Elasticsearch::Role::Client::Direct::Main::_build_helper at line 47 of /opt/flows/lib/lib/perl5/Search/Elasticsearch/Role/Client/Direct/Main.pm
sub Search::Elasticsearch::Role::Client::transport; # xsub