| 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.74ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 77µs | 95µs | Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@3 |
| 1 | 1 | 1 | 51µs | 15.4ms | Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@10 |
| 1 | 1 | 1 | 50µs | 838µs | Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@55 |
| 1 | 1 | 1 | 41µs | 110µ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 | 104µs | 2 | 113µs | # spent 95µs (77+18) within Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@3 which was called:
# once (77µs+18µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@12 at line 3 # spent 95µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@3
# spent 18µs making 1 call to strict::import |
| 4 | 3 | 236µs | 2 | 178µs | # spent 110µs (41+68) within Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@4 which was called:
# once (41µs+68µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@12 at line 4 # spent 110µ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 | 77µs | $VERSION = eval $VERSION; # spent 12µs executing statements in string eval | ||
| 8 | 1 | 4µs | our $AUTHORITY = 'cpan:STEVAN'; | ||
| 9 | |||||
| 10 | 3 | 1.07ms | 2 | 30.7ms | # spent 15.4ms (51µs+15.3) within Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@10 which was called:
# once (51µs+15.3ms) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@12 at line 10 # spent 15.4ms making 1 call to Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@10
# spent 15.3ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456] |
| 11 | |||||
| 12 | 1 | 36µs | 1 | 51.5ms | with 'Moose::Meta::Method::Accessor::Native::Array::Writer' => { # spent 51.5ms 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 | 158µs | 2 | 1.63ms | # spent 838µs (50+788) within Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@55 which was called:
# once (50µs+788µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@12 at line 55 # spent 838µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::delete::BEGIN@55
# spent 788µs making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:557] |
| 56 | |||||
| 57 | 1 | 50µs | 1; |