| 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.36ms |
| 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 | 46µs | 869µs | Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@44 |
| 1 | 1 | 1 | 42µs | 14.7ms | 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 | 38µs | 38µs | Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@6 |
| 1 | 1 | 1 | 21µs | 21µ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 | 108µs | 2 | 114µs | # spent 95µs (77+19) within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@3 which was called:
# once (77µs+19µ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 19µs making 1 call to strict::import |
| 4 | 3 | 117µ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 | 83µs | 1 | 38µs | # spent 38µs within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@6 which was called:
# once (38µs+0s) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@14 at line 6 # spent 38µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@6 |
| 7 | 3 | 216µs | 1 | 21µs | # spent 21µs within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@7 which was called:
# once (21µs+0s) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@14 at line 7 # spent 21µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@7 |
| 8 | |||||
| 9 | 1 | 5µs | our $VERSION = '1.19'; | ||
| 10 | 1 | 84µs | $VERSION = eval $VERSION; # spent 11µs executing statements in string eval | ||
| 11 | 1 | 3µs | our $AUTHORITY = 'cpan:STEVAN'; | ||
| 12 | |||||
| 13 | 3 | 545µs | 2 | 29.4ms | # spent 14.7ms (42µs+14.7) within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@13 which was called:
# once (42µs+14.7ms) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@14 at line 13 # spent 14.7ms making 1 call to Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@13
# spent 14.7ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456] |
| 14 | |||||
| 15 | 1 | 34µs | 1 | 18.9ms | with 'Moose::Meta::Method::Accessor::Native::Reader' => { # spent 18.9ms 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 | 117µs | 2 | 1.69ms | # spent 869µs (46+823) within Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@44 which was called:
# once (46µs+823µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@14 at line 44 # spent 869µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::first::BEGIN@44
# spent 823µs making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:557] |
| 45 | |||||
| 46 | 1 | 45µs | 1; |