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