| 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/reduce.pm |
| Statements | Executed 23 statements in 1.36ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 81µs | 99µs | Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@3 |
| 1 | 1 | 1 | 47µs | 789µs | Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@44 |
| 1 | 1 | 1 | 42µs | 113µs | Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@4 |
| 1 | 1 | 1 | 42µs | 14.7ms | Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@13 |
| 1 | 1 | 1 | 20µs | 20µs | Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@6 |
| 1 | 1 | 1 | 18µs | 18µs | Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@7 |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::reduce::_inline_check_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::reduce::_maximum_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::reduce::_minimum_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::reduce::_return_value |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Moose::Meta::Method::Accessor::Native::Array::reduce; | ||||
| 2 | |||||
| 3 | 3 | 105µs | 2 | 117µs | # spent 99µs (81+18) within Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@3 which was called:
# once (81µs+18µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@24 at line 3 # spent 99µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@3
# spent 18µs making 1 call to strict::import |
| 4 | 3 | 105µs | 2 | 185µs | # spent 113µs (42+71) within Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@4 which was called:
# once (42µs+71µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@24 at line 4 # spent 113µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@4
# spent 71µs making 1 call to warnings::import |
| 5 | |||||
| 6 | 3 | 80µs | 1 | 20µs | # spent 20µs within Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@6 which was called:
# once (20µs+0s) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@24 at line 6 # spent 20µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@6 |
| 7 | 3 | 230µs | 1 | 18µs | # spent 18µs within Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@7 which was called:
# once (18µs+0s) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@24 at line 7 # spent 18µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@7 |
| 8 | |||||
| 9 | 1 | 4µs | our $VERSION = '1.19'; | ||
| 10 | 1 | 78µs | $VERSION = eval $VERSION; # spent 10µs executing statements in string eval | ||
| 11 | 1 | 3µs | our $AUTHORITY = 'cpan:STEVAN'; | ||
| 12 | |||||
| 13 | 3 | 556µs | 2 | 29.5ms | # spent 14.7ms (42µs+14.7) within Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@13 which was called:
# once (42µs+14.7ms) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@24 at line 13 # spent 14.7ms making 1 call to Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@13
# spent 14.7ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456] |
| 14 | |||||
| 15 | 1 | 33µs | 1 | 18.0ms | with 'Moose::Meta::Method::Accessor::Native::Reader' => { # spent 18.0ms making 1 call to Moose::Role::with |
| 16 | -excludes => [ | ||||
| 17 | qw( | ||||
| 18 | _minimum_arguments | ||||
| 19 | _maximum_arguments | ||||
| 20 | _inline_check_arguments | ||||
| 21 | ) | ||||
| 22 | ] | ||||
| 23 | }; | ||||
| 24 | |||||
| 25 | sub _minimum_arguments { 1 } | ||||
| 26 | |||||
| 27 | sub _maximum_arguments { 1 } | ||||
| 28 | |||||
| 29 | sub _inline_check_arguments { | ||||
| 30 | my $self = shift; | ||||
| 31 | |||||
| 32 | return $self->_inline_throw_error( | ||||
| 33 | q{'The argument passed to reduce must be a code reference'}) | ||||
| 34 | . q{ unless Params::Util::_CODELIKE( $_[0] );}; | ||||
| 35 | } | ||||
| 36 | |||||
| 37 | sub _return_value { | ||||
| 38 | my $self = shift; | ||||
| 39 | my $slot_access = shift; | ||||
| 40 | |||||
| 41 | return "List::Util::reduce { \$_[0]->( \$a, \$b ) } \@{ ($slot_access) }"; | ||||
| 42 | } | ||||
| 43 | |||||
| 44 | 3 | 118µs | 2 | 1.53ms | # spent 789µs (47+742) within Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@44 which was called:
# once (47µs+742µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@24 at line 44 # spent 789µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::reduce::BEGIN@44
# spent 742µs making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:557] |
| 45 | |||||
| 46 | 1 | 46µs | 1; |