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