← 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/Method/Generate/BuildAll.pm
StatementsExecuted 22 statements in 420µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
21132µs62µsMethod::Generate::BuildAll::::buildall_body_forMethod::Generate::BuildAll::buildall_body_for
11120µs74µsMethod::Generate::BuildAll::::BEGIN@3Method::Generate::BuildAll::BEGIN@3
11111µs48µsMethod::Generate::BuildAll::::BEGIN@5Method::Generate::BuildAll::BEGIN@5
11111µs78µsMethod::Generate::BuildAll::::BEGIN@6Method::Generate::BuildAll::BEGIN@6
11110µs34µsMethod::Generate::BuildAll::::BEGIN@7Method::Generate::BuildAll::BEGIN@7
1118µs78µsMethod::Generate::BuildAll::::BEGIN@4Method::Generate::BuildAll::BEGIN@4
0000s0sMethod::Generate::BuildAll::::_handle_subbuildMethod::Generate::BuildAll::_handle_subbuild
0000s0sMethod::Generate::BuildAll::::generate_methodMethod::Generate::BuildAll::generate_method
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Method::Generate::BuildAll;
2
3343µs3127µs
# spent 74µs (20+54) within Method::Generate::BuildAll::BEGIN@3 which was called: # once (20µs+54µs) by Method::Generate::Constructor::buildall_generator at line 3
use strictures 1;
# spent 74µs making 1 call to Method::Generate::BuildAll::BEGIN@3 # spent 36µs making 1 call to strictures::import # spent 17µs making 1 call to strictures::VERSION
4234µs2147µs
# spent 78µs (8+70) within Method::Generate::BuildAll::BEGIN@4 which was called: # once (8µs+70µs) by Method::Generate::Constructor::buildall_generator at line 4
use base qw(Moo::Object);
# spent 78µs making 1 call to Method::Generate::BuildAll::BEGIN@4 # spent 70µs making 1 call to base::import
5232µs285µs
# spent 48µs (11+37) within Method::Generate::BuildAll::BEGIN@5 which was called: # once (11µs+37µs) by Method::Generate::Constructor::buildall_generator at line 5
use Sub::Quote;
# spent 48µs making 1 call to Method::Generate::BuildAll::BEGIN@5 # spent 37µs making 1 call to Exporter::import
6233µs2145µs
# spent 78µs (11+67) within Method::Generate::BuildAll::BEGIN@6 which was called: # once (11µs+67µs) by Method::Generate::Constructor::buildall_generator at line 6
use Moo::_Utils;
# spent 78µs making 1 call to Method::Generate::BuildAll::BEGIN@6 # spent 67µs making 1 call to Exporter::import
72245µs258µs
# spent 34µs (10+24) within Method::Generate::BuildAll::BEGIN@7 which was called: # once (10µs+24µs) by Method::Generate::Constructor::buildall_generator at line 7
use B 'perlstring';
# spent 34µs making 1 call to Method::Generate::BuildAll::BEGIN@7 # spent 24µs making 1 call to Exporter::import
8
9sub generate_method {
10 my ($self, $into) = @_;
11 quote_sub "${into}::BUILDALL", join '',
12 $self->_handle_subbuild($into),
13 qq{ my \$self = shift;\n},
14 $self->buildall_body_for($into, '$self', '@_'),
15 qq{ return \$self\n};
16}
17
18sub _handle_subbuild {
19 my ($self, $into) = @_;
20 ' if (ref($_[0]) ne '.perlstring($into).') {'."\n".
21 ' return shift->Moo::Object::BUILDALL(@_)'.";\n".
22 ' }'."\n";
23}
24
25
# spent 62µs (32+30) within Method::Generate::BuildAll::buildall_body_for which was called 2 times, avg 31µs/call: # 2 times (32µs+30µs) by Method::Generate::Constructor::generate_method at line 98 of Method/Generate/Constructor.pm, avg 31µs/call
sub buildall_body_for {
2622µs my ($self, $into, $me, $args) = @_;
2744µs48µs my @builds =
# spent 8µs making 4 calls to Moo::_Utils::_getglob, avg 2µs/call
28 grep *{_getglob($_)}{CODE},
29 map "${_}::BUILD",
30212µs222µs reverse @{Moo::_Utils::_get_linear_isa($into)};
# spent 22µs making 2 calls to Moo::_Utils::_get_linear_isa, avg 11µs/call
31212µs join '', map qq{ ${me}->${_}(${args});\n}, @builds;
32}
33
3412µs1;