← Index
NYTProf Performance Profile   « block view • line view • sub view »
For -e
  Run on Wed Nov 17 21:45:08 2010
Reported on Wed Nov 17 22:12:43 2010

Filename/home/doy/perl5/perlbrew/perls/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Moose/Meta/Method/Accessor/Native/Array/natatime.pm
StatementsExecuted 23 statements in 1.67ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11181µs100µsMoose::Meta::Method::Accessor::Native::Array::natatime::::BEGIN@3Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@3
11148µs851µsMoose::Meta::Method::Accessor::Native::Array::natatime::::BEGIN@57Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@57
11143µs15.7msMoose::Meta::Method::Accessor::Native::Array::natatime::::BEGIN@13Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@13
11141µs110µsMoose::Meta::Method::Accessor::Native::Array::natatime::::BEGIN@4Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@4
11121µs21µsMoose::Meta::Method::Accessor::Native::Array::natatime::::BEGIN@6Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@6
11119µs19µsMoose::Meta::Method::Accessor::Native::Array::natatime::::BEGIN@7Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@7
0000s0sMoose::Meta::Method::Accessor::Native::Array::natatime::::_inline_check_argumentsMoose::Meta::Method::Accessor::Native::Array::natatime::_inline_check_arguments
0000s0sMoose::Meta::Method::Accessor::Native::Array::natatime::::_inline_return_valueMoose::Meta::Method::Accessor::Native::Array::natatime::_inline_return_value
0000s0sMoose::Meta::Method::Accessor::Native::Array::natatime::::_maximum_argumentsMoose::Meta::Method::Accessor::Native::Array::natatime::_maximum_arguments
0000s0sMoose::Meta::Method::Accessor::Native::Array::natatime::::_minimum_argumentsMoose::Meta::Method::Accessor::Native::Array::natatime::_minimum_arguments
0000s0sMoose::Meta::Method::Accessor::Native::Array::natatime::::_return_valueMoose::Meta::Method::Accessor::Native::Array::natatime::_return_value
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Moose::Meta::Method::Accessor::Native::Array::natatime;
2
33104µs2118µs
# spent 100µs (81+19) within Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@3 which was called: # once (81µs+19µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@21 at line 3
use strict;
# spent 100µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@3 # spent 19µs making 1 call to strict::import
4399µs2178µs
# spent 110µs (41+69) within Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@4 which was called: # once (41µs+69µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@21 at line 4
use warnings;
# spent 110µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@4 # spent 69µs making 1 call to warnings::import
5
6379µs121µs
# spent 21µs within Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@6 which was called: # once (21µs+0s) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@21 at line 6
use List::MoreUtils ();
73235µs119µs
# spent 19µs within Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@7 which was called: # once (19µs+0s) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@21 at line 7
use Params::Util ();
8
914µsour $VERSION = '1.19';
10188µs$VERSION = eval $VERSION;
# spent 11µs executing statements in string eval
1113µsour $AUTHORITY = 'cpan:STEVAN';
12
133848µs231.3ms
# spent 15.7ms (43µs+15.6) within Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@13 which was called: # once (43µs+15.6ms) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@21 at line 13
use Moose::Role;
14
15136µs117.0mswith 'Moose::Meta::Method::Accessor::Native::Reader' => {
# spent 17.0ms making 1 call to Moose::Role::with
16 -excludes => [
17 qw(
18 _minimum_arguments
19 _maximum_arguments
20 _inline_check_arguments
21 _inline_return_value
22 )
23 ]
24};
25
26sub _minimum_arguments {1}
27
28sub _maximum_arguments {2}
29
30sub _inline_check_arguments {
31 my $self = shift;
32
33 return $self->_inline_throw_error(
34 q{'The n value passed to natatime must be an integer'})
35 . ' unless defined $_[0] && $_[0] =~ /^\\d+$/;' . "\n"
36 . $self->_inline_throw_error(
37 q{'The second argument passed to natatime must be a code reference'})
38 . q{ if @_ == 2 && ! Params::Util::_CODELIKE( $_[1] );};
39}
40
41sub _inline_return_value {
42 my ( $self, $slot_access ) = @_;
43
44 return
45 "my \$iter = List::MoreUtils::natatime( \$_[0], \@{ ($slot_access) } );"
46 . "\n"
47 . 'if ( $_[1] ) {' . "\n"
48 . 'while (my @vals = $iter->()) {' . "\n"
49 . '$_[1]->(@vals);' . "\n" . '}' . "\n"
50 . '} else {' . "\n"
51 . 'return $iter;' . "\n" . '}';
52}
53
54# Not called, but needed to satisfy the Reader role
55sub _return_value { }
56
573124µs21.65ms
# spent 851µs (48+803) within Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@57 which was called: # once (48µs+803µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@21 at line 57
no Moose::Role;
58
59148µs1;