| 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 |
| Statements | Executed 23 statements in 1.67ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 81µs | 100µs | Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@3 |
| 1 | 1 | 1 | 48µs | 851µs | Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@57 |
| 1 | 1 | 1 | 43µs | 15.7ms | Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@13 |
| 1 | 1 | 1 | 41µs | 110µs | Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@4 |
| 1 | 1 | 1 | 21µs | 21µs | Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@6 |
| 1 | 1 | 1 | 19µs | 19µs | Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@7 |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::natatime::_inline_check_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::natatime::_inline_return_value |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::natatime::_maximum_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::natatime::_minimum_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::natatime::_return_value |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Moose::Meta::Method::Accessor::Native::Array::natatime; | ||||
| 2 | |||||
| 3 | 3 | 104µs | 2 | 118µ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 # 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 |
| 4 | 3 | 99µs | 2 | 178µ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 # 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 | |||||
| 6 | 3 | 79µs | 1 | 21µ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 # spent 21µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@6 |
| 7 | 3 | 235µs | 1 | 19µ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 # spent 19µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@7 |
| 8 | |||||
| 9 | 1 | 4µs | our $VERSION = '1.19'; | ||
| 10 | 1 | 88µs | $VERSION = eval $VERSION; # spent 11µs executing statements in string eval | ||
| 11 | 1 | 3µs | our $AUTHORITY = 'cpan:STEVAN'; | ||
| 12 | |||||
| 13 | 3 | 848µs | 2 | 31.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 # spent 15.7ms making 1 call to Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@13
# spent 15.6ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456] |
| 14 | |||||
| 15 | 1 | 36µs | 1 | 17.0ms | with '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 | |||||
| 26 | sub _minimum_arguments {1} | ||||
| 27 | |||||
| 28 | sub _maximum_arguments {2} | ||||
| 29 | |||||
| 30 | sub _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 | |||||
| 41 | sub _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 | ||||
| 55 | sub _return_value { } | ||||
| 56 | |||||
| 57 | 3 | 124µs | 2 | 1.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 # spent 851µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::natatime::BEGIN@57
# spent 803µs making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:557] |
| 58 | |||||
| 59 | 1 | 48µs | 1; |