← Index
NYTProf Performance Profile   « line view »
For /home/ss5/perl5/perlbrew/perls/perl-5.22.0/bin/benchmarkanything-storage
  Run on Mon Jan 29 16:55:34 2018
Reported on Mon Jan 29 16:57:07 2018

Filename/home/ss5/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/Search/Elasticsearch/Role/Client.pm
StatementsExecuted 3012 statements in 11.7ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
10011130.5ms20.8sSearch::Elasticsearch::Role::Client::::perform_requestSearch::Elasticsearch::Role::Client::perform_request
1119µs497µsSearch::Elasticsearch::Role::Client::::BEGIN@3Search::Elasticsearch::Role::Client::BEGIN@3
1115µs97µsSearch::Elasticsearch::Role::Client::::BEGIN@4Search::Elasticsearch::Role::Client::BEGIN@4
2222µs2µsSearch::Elasticsearch::Role::Client::::transportSearch::Elasticsearch::Role::Client::transport (xsub)
111500ns500nsSearch::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;
21300ns$Search::Elasticsearch::Role::Client::VERSION = '5.01';
3221µs2986µs
# spent 497µs (9+488) within Search::Elasticsearch::Role::Client::BEGIN@3 which was called: # once (9µs+488µs) by Module::Runtime::require_module at line 3
use Moo::Role;
# spent 497µs making 1 call to Search::Elasticsearch::Role::Client::BEGIN@3 # spent 488µs making 1 call to Moo::Role::import
4260µs2189µs
# spent 97µs (5+92) within Search::Elasticsearch::Role::Client::BEGIN@4 which was called: # once (5µs+92µs) by Module::Runtime::require_module at line 4
use namespace::clean;
# spent 97µs making 1 call to Search::Elasticsearch::Role::Client::BEGIN@4 # spent 92µs making 1 call to namespace::clean::import
5
61600ns17µsrequires 'parse_request';
# spent 7µs making 1 call to Moo::Role::requires
7
81800ns191µshas 'transport' => ( is => 'ro', required => 1 );
# spent 91µs making 1 call to Moo::Role::has
91600ns151µshas 'logger' => ( is => 'ro', required => 1 );
# spent 51µs making 1 call to Moo::Role::has
10
11#===================================
12
# spent 20.8s (30.5ms+20.8) within Search::Elasticsearch::Role::Client::perform_request which was called 1001 times, avg 20.8ms/call: # 1001 times (30.5ms+20.8s) by Search::Elasticsearch::Role::Client::Direct::__ANON__[/home/ss5/perl5/perlbrew/perls/perl-5.22.0/lib/site_perl/5.22.0/Search/Elasticsearch/Role/Client/Direct.pm:140] at line 139 of Search/Elasticsearch/Role/Client/Direct.pm, avg 20.8ms/call
sub perform_request {
13#===================================
141001407µs my $self = shift;
1510012.69ms1001213ms my $request = $self->parse_request(@_);
# spent 213ms making 1001 calls to Search::Elasticsearch::Role::Client::Direct::parse_request, avg 213µs/call
1610018.51ms100220.6s return $self->transport->perform_request($request);
# spent 20.6s making 1001 calls to Search::Elasticsearch::Transport::perform_request, avg 20.5ms/call # spent 1µs making 1 call to Search::Elasticsearch::Role::Client::transport
17}
18
1914µ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 5.01
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
6116µs1129µs__END__
 
# spent 500ns within Search::Elasticsearch::Role::Client::logger which was called: # once (500ns+0s) by Search::Elasticsearch::Role::Client::Direct::_build_namespace at line 150 of Search/Elasticsearch/Role/Client/Direct.pm
sub Search::Elasticsearch::Role::Client::logger; # xsub
# spent 2µs within Search::Elasticsearch::Role::Client::transport which was called 2 times, avg 1µs/call: # once (1µs+0s) by Search::Elasticsearch::Role::Client::Direct::_build_namespace at line 150 of Search/Elasticsearch/Role/Client/Direct.pm # once (1µs+0s) by Search::Elasticsearch::Role::Client::perform_request at line 16
sub Search::Elasticsearch::Role::Client::transport; # xsub