| 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/grep.pm |
| Statements | Executed 20 statements in 1.48ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 100µs | 118µs | Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@3 |
| 1 | 1 | 1 | 48µs | 785µs | Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@43 |
| 1 | 1 | 1 | 43µs | 16.6ms | Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@12 |
| 1 | 1 | 1 | 43µs | 113µs | Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@4 |
| 1 | 1 | 1 | 20µs | 20µs | Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@6 |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::grep::_inline_check_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::grep::_maximum_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::grep::_minimum_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::grep::_return_value |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Moose::Meta::Method::Accessor::Native::Array::grep; | ||||
| 2 | |||||
| 3 | 3 | 247µs | 2 | 137µs | # spent 118µs (100+18) within Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@3 which was called:
# once (100µs+18µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@16 at line 3 # spent 118µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@3
# spent 19µs making 1 call to strict::import |
| 4 | 3 | 101µs | 2 | 184µs | # spent 113µs (43+71) within Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@4 which was called:
# once (43µs+71µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@16 at line 4 # spent 113µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@4
# spent 71µs making 1 call to warnings::import |
| 5 | |||||
| 6 | 3 | 267µs | 1 | 20µs | # spent 20µs within Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@6 which was called:
# once (20µs+0s) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@16 at line 6 # spent 20µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@6 |
| 7 | |||||
| 8 | 1 | 5µs | our $VERSION = '1.19'; | ||
| 9 | 1 | 81µs | $VERSION = eval $VERSION; # spent 12µs executing statements in string eval | ||
| 10 | 1 | 3µs | our $AUTHORITY = 'cpan:STEVAN'; | ||
| 11 | |||||
| 12 | 3 | 587µs | 2 | 33.2ms | # spent 16.6ms (43µs+16.6) within Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@12 which was called:
# once (43µs+16.6ms) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@16 at line 12 # spent 16.6ms making 1 call to Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@12
# spent 16.6ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456] |
| 13 | |||||
| 14 | 1 | 34µ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 grep 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 "grep { \$_[0]->() } \@{ ($slot_access) }"; | ||||
| 41 | } | ||||
| 42 | |||||
| 43 | 3 | 114µs | 2 | 1.52ms | # spent 785µs (48+737) within Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@43 which was called:
# once (48µs+737µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@16 at line 43 # spent 785µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::grep::BEGIN@43
# spent 737µs making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:557] |
| 44 | |||||
| 45 | 1 | 45µs | 1; |