| 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/first.pm |
| Statements | Executed 23 statements in 1.83ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 77µs | 95µs | Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@3 |
| 1 | 1 | 1 | 75µs | 1.31ms | Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@44 |
| 1 | 1 | 1 | 52µs | 16.4ms | Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@13 |
| 1 | 1 | 1 | 41µs | 111µs | Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@4 |
| 1 | 1 | 1 | 37µs | 37µs | Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@6 |
| 1 | 1 | 1 | 20µs | 20µs | Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@7 |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::first::_inline_check_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::first::_maximum_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::first::_minimum_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::first::_return_value |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Moose::Meta::Method::Accessor::Native::Array::first; | ||||
| 2 | |||||
| 3 | 3 | 104µs | 2 | 113µs | # spent 95µs (77+18) within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@3 which was called:
# once (77µs+18µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@14 at line 3 # spent 95µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@3
# spent 18µs making 1 call to strict::import |
| 4 | 3 | 156µs | 2 | 180µs | # spent 111µs (41+69) within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@4 which was called:
# once (41µs+69µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@14 at line 4 # spent 111µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@4
# spent 69µs making 1 call to warnings::import |
| 5 | |||||
| 6 | 3 | 85µs | 1 | 37µs | # spent 37µs within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@6 which was called:
# once (37µs+0s) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@14 at line 6 # spent 37µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@6 |
| 7 | 3 | 220µs | 1 | 20µs | # spent 20µs within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@7 which was called:
# once (20µs+0s) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@14 at line 7 # spent 20µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@7 |
| 8 | |||||
| 9 | 1 | 6µs | our $VERSION = '1.19'; | ||
| 10 | 1 | 120µs | $VERSION = eval $VERSION; # spent 16µs executing statements in string eval | ||
| 11 | 1 | 5µs | our $AUTHORITY = 'cpan:STEVAN'; | ||
| 12 | |||||
| 13 | 3 | 863µs | 2 | 32.7ms | # spent 16.4ms (52µs+16.3) within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@13 which was called:
# once (52µs+16.3ms) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@14 at line 13 # spent 16.4ms making 1 call to Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@13
# spent 16.3ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456] |
| 14 | |||||
| 15 | 1 | 54µ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 first 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::first( \$_[0], \@{ ($slot_access) } )"; | ||||
| 42 | } | ||||
| 43 | |||||
| 44 | 3 | 173µs | 2 | 2.55ms | # spent 1.31ms (75µs+1.24) within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@44 which was called:
# once (75µs+1.24ms) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@14 at line 44 # spent 1.31ms making 1 call to Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@44
# spent 1.24ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:557] |
| 45 | |||||
| 46 | 1 | 45µs | 1; |