| Filename | /usr/local/lib/perl/5.18.2/Moose/Meta/Method/Accessor/Native/Array/push.pm |
| Statements | Executed 63 statements in 313µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 8 | 2 | 2 | 20µs | 20µs | Moose::Meta::Method::Accessor::Native::Array::push::_return_value |
| 1 | 1 | 1 | 13µs | 28µs | Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@4 |
| 4 | 1 | 1 | 13µs | 13µs | Moose::Meta::Method::Accessor::Native::Array::push::_potential_value |
| 4 | 1 | 1 | 11µs | 11µs | Moose::Meta::Method::Accessor::Native::Array::push::_inline_optimized_set_new_value |
| 1 | 1 | 1 | 9µs | 2.21ms | Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@7 |
| 1 | 1 | 1 | 8µs | 16µs | Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@5 |
| 1 | 1 | 1 | 7µs | 94µs | Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@34 |
| 4 | 1 | 1 | 6µs | 6µs | Moose::Meta::Method::Accessor::Native::Array::push::_adds_members |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Moose::Meta::Method::Accessor::Native::Array::push; | ||||
| 2 | 1 | 400ns | our $VERSION = '2.1604'; | ||
| 3 | |||||
| 4 | 2 | 23µs | 2 | 44µs | # spent 28µs (13+15) within Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@4 which was called:
# once (13µs+15µs) by Module::Runtime::require_module at line 4 # spent 28µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@4
# spent 15µs making 1 call to strict::import |
| 5 | 2 | 22µs | 2 | 23µs | # spent 16µs (8+7) within Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@5 which was called:
# once (8µs+7µs) by Module::Runtime::require_module at line 5 # spent 16µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@5
# spent 7µs making 1 call to warnings::import |
| 6 | |||||
| 7 | 2 | 152µs | 2 | 4.42ms | # spent 2.21ms (9µs+2.20) within Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@7 which was called:
# once (9µs+2.20ms) by Module::Runtime::require_module at line 7 # spent 2.21ms making 1 call to Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@7
# spent 2.20ms making 1 call to Moose::Role::import |
| 8 | |||||
| 9 | 1 | 2µs | 1 | 21.6ms | with 'Moose::Meta::Method::Accessor::Native::Array::Writer'; # spent 21.6ms making 1 call to Moose::Role::with |
| 10 | |||||
| 11 | 4 | 8µs | # spent 6µs within Moose::Meta::Method::Accessor::Native::Array::push::_adds_members which was called 4 times, avg 1µs/call:
# 4 times (6µs+0s) by Moose::Meta::Method::Accessor::Native::Collection::_inline_tc_code at line 59 of Moose/Meta/Method/Accessor/Native/Collection.pm, avg 1µs/call | ||
| 12 | |||||
| 13 | # spent 13µs within Moose::Meta::Method::Accessor::Native::Array::push::_potential_value which was called 4 times, avg 3µs/call:
# 4 times (13µs+0s) by Moose::Meta::Method::Accessor::Native::Writer::_inline_writer_core at line 35 of Moose/Meta/Method/Accessor/Native/Writer.pm, avg 3µs/call | ||||
| 14 | 4 | 1µs | my $self = shift; | ||
| 15 | 4 | 1µs | my ($slot_access) = @_; | ||
| 16 | |||||
| 17 | 4 | 16µs | return '[ @{ (' . $slot_access . ') }, @_ ]'; | ||
| 18 | } | ||||
| 19 | |||||
| 20 | # spent 11µs within Moose::Meta::Method::Accessor::Native::Array::push::_inline_optimized_set_new_value which was called 4 times, avg 3µs/call:
# 4 times (11µs+0s) by Moose::Meta::Method::Accessor::Native::Writer::_inline_set_new_value at line 150 of Moose/Meta/Method/Accessor/Native/Writer.pm, avg 3µs/call | ||||
| 21 | 4 | 1µs | my $self = shift; | ||
| 22 | 4 | 3µs | my ($inv, $new, $slot_access) = @_; | ||
| 23 | |||||
| 24 | 4 | 12µs | return 'push @{ (' . $slot_access . ') }, @_;'; | ||
| 25 | } | ||||
| 26 | |||||
| 27 | # spent 20µs within Moose::Meta::Method::Accessor::Native::Array::push::_return_value which was called 8 times, avg 3µs/call:
# 4 times (14µs+0s) by Moose::Meta::Method::Accessor::Native::Writer::_inline_writer_core at line 46 of Moose/Meta/Method/Accessor/Native/Writer.pm, avg 4µs/call
# 4 times (6µs+0s) by Moose::Meta::Method::Accessor::Native::_inline_return_value at line 103 of Moose/Meta/Method/Accessor/Native.pm, avg 1µs/call | ||||
| 28 | 8 | 2µs | my $self = shift; | ||
| 29 | 8 | 3µs | my ($slot_access) = @_; | ||
| 30 | |||||
| 31 | 8 | 22µs | return 'scalar @{ (' . $slot_access . ') }'; | ||
| 32 | } | ||||
| 33 | |||||
| 34 | 2 | 30µs | 2 | 180µs | # spent 94µs (7+86) within Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@34 which was called:
# once (7µs+86µs) by Module::Runtime::require_module at line 34 # spent 94µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@34
# spent 86µs making 1 call to Moose::Role::unimport |
| 35 | |||||
| 36 | 1 | 14µs | 1; |