| 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/delete.pm |
| Statements | Executed 17 statements in 1.44ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 84µs | 103µs | Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@3 |
| 1 | 1 | 1 | 45µs | 784µs | Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@55 |
| 1 | 1 | 1 | 45µs | 14.8ms | Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@10 |
| 1 | 1 | 1 | 44µs | 112µs | Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@4 |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::delete::_adds_members |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::delete::_inline_check_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::delete::_inline_optimized_set_new_value |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::delete::_maximum_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::delete::_minimum_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::delete::_potential_value |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::delete::_return_value |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Moose::Meta::Method::Accessor::Native::Array::delete; | ||||
| 2 | |||||
| 3 | 3 | 108µs | 2 | 122µs | # spent 103µs (84+19) within Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@3 which was called:
# once (84µs+19µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@12 at line 3 # spent 103µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@3
# spent 19µs making 1 call to strict::import |
| 4 | 3 | 237µs | 2 | 181µs | # spent 112µs (44+69) within Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@4 which was called:
# once (44µs+69µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@12 at line 4 # spent 112µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@4
# spent 69µs making 1 call to warnings::import |
| 5 | |||||
| 6 | 1 | 4µs | our $VERSION = '1.19'; | ||
| 7 | 1 | 78µs | $VERSION = eval $VERSION; # spent 11µs executing statements in string eval | ||
| 8 | 1 | 4µs | our $AUTHORITY = 'cpan:STEVAN'; | ||
| 9 | |||||
| 10 | 3 | 810µs | 2 | 29.5ms | # spent 14.8ms (45µs+14.7) within Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@10 which was called:
# once (45µs+14.7ms) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@12 at line 10 # spent 14.8ms making 1 call to Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@10
# spent 14.7ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456] |
| 11 | |||||
| 12 | 1 | 35µs | 1 | 46.9ms | with 'Moose::Meta::Method::Accessor::Native::Array::Writer' => { # spent 46.9ms making 1 call to Moose::Role::with |
| 13 | -excludes => [ | ||||
| 14 | qw( | ||||
| 15 | _minimum_arguments | ||||
| 16 | _maximum_arguments | ||||
| 17 | _inline_check_arguments | ||||
| 18 | _inline_optimized_set_new_value | ||||
| 19 | _return_value | ||||
| 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_check_var_is_valid_index('$_[0]'); | ||||
| 32 | } | ||||
| 33 | |||||
| 34 | sub _adds_members { 0 } | ||||
| 35 | |||||
| 36 | sub _potential_value { | ||||
| 37 | my ( $self, $slot_access ) = @_; | ||||
| 38 | |||||
| 39 | return | ||||
| 40 | "( do { my \@potential = \@{ ($slot_access) }; \@return = splice \@potential, \$_[0], 1; \\\@potential } )"; | ||||
| 41 | } | ||||
| 42 | |||||
| 43 | sub _inline_optimized_set_new_value { | ||||
| 44 | my ( $self, $inv, $new, $slot_access ) = @_; | ||||
| 45 | |||||
| 46 | return "\@return = splice \@{ ($slot_access) }, \$_[0], 1"; | ||||
| 47 | } | ||||
| 48 | |||||
| 49 | sub _return_value { | ||||
| 50 | my ( $self, $slot_access ) = @_; | ||||
| 51 | |||||
| 52 | return 'return $return[0];'; | ||||
| 53 | } | ||||
| 54 | |||||
| 55 | 3 | 116µs | 2 | 1.52ms | # spent 784µs (45+739) within Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@55 which was called:
# once (45µs+739µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@12 at line 55 # spent 784µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@55
# spent 739µs making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:557] |
| 56 | |||||
| 57 | 1 | 46µs | 1; |