| 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/push.pm |
| Statements | Executed 26 statements in 1.53ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 3.80ms | 3.82ms | Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@3 |
| 1 | 1 | 1 | 53µs | 14.9ms | Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@10 |
| 1 | 1 | 1 | 47µs | 122µs | Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@4 |
| 1 | 1 | 1 | 46µs | 869µs | Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@41 |
| 2 | 2 | 1 | 32µs | 32µs | Moose::Meta::Method::Accessor::Native::Array::push::_return_value |
| 1 | 1 | 1 | 24µs | 24µs | Moose::Meta::Method::Accessor::Native::Array::push::_inline_optimized_set_new_value |
| 1 | 1 | 1 | 21µs | 21µs | Moose::Meta::Method::Accessor::Native::Array::push::_potential_value |
| 1 | 1 | 1 | 10µs | 10µ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 | |||||
| 3 | 3 | 176µs | 2 | 3.84ms | # spent 3.82ms (3.80+18µs) within Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@3 which was called:
# once (3.80ms+18µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@23 at line 3 # spent 3.82ms making 1 call to Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@3
# spent 18µs making 1 call to strict::import |
| 4 | 3 | 297µs | 2 | 196µs | # spent 122µs (47+75) within Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@4 which was called:
# once (47µs+75µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@23 at line 4 # spent 122µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@4
# spent 75µs making 1 call to warnings::import |
| 5 | |||||
| 6 | 1 | 4µs | our $VERSION = '1.19'; | ||
| 7 | 1 | 83µs | $VERSION = eval $VERSION; # spent 11µs executing statements in string eval | ||
| 8 | 1 | 4µs | our $AUTHORITY = 'cpan:STEVAN'; | ||
| 9 | |||||
| 10 | 3 | 636µs | 2 | 29.7ms | # spent 14.9ms (53µs+14.8) within Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@10 which was called:
# once (53µs+14.8ms) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@23 at line 10 # spent 14.9ms making 1 call to Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@10
# spent 14.8ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:456] |
| 11 | |||||
| 12 | 1 | 32µs | 1 | 47.0ms | with 'Moose::Meta::Method::Accessor::Native::Array::Writer' => { # spent 47.0ms making 1 call to Moose::Role::with |
| 13 | -excludes => [ | ||||
| 14 | qw( | ||||
| 15 | _inline_optimized_set_new_value | ||||
| 16 | _return_value | ||||
| 17 | ) | ||||
| 18 | ] | ||||
| 19 | }; | ||||
| 20 | |||||
| 21 | 1 | 18µs | # spent 10µs within Moose::Meta::Method::Accessor::Native::Array::push::_adds_members which was called:
# once (10µs+0s) by Class::MOP::Class:::around at line 68 of Moose/Meta/Method/Accessor/Native/Collection.pm | ||
| 22 | |||||
| 23 | # spent 21µs within Moose::Meta::Method::Accessor::Native::Array::push::_potential_value which was called:
# once (21µs+0s) by Moose::Meta::Method::Accessor::Native::Writer::_writer_core at line 53 of Moose/Meta/Method/Accessor/Native/Writer.pm | ||||
| 24 | 2 | 30µs | my ( $self, $slot_access ) = @_; | ||
| 25 | |||||
| 26 | return "[ \@{ ($slot_access) }, \@_ ]"; | ||||
| 27 | } | ||||
| 28 | |||||
| 29 | # spent 24µs within Moose::Meta::Method::Accessor::Native::Array::push::_inline_optimized_set_new_value which was called:
# once (24µs+0s) by Moose::Meta::Method::Accessor::Native::Writer::_inline_set_new_value at line 166 of Moose/Meta/Method/Accessor/Native/Writer.pm | ||||
| 30 | 2 | 32µs | my ( $self, $inv, $new, $slot_access ) = @_; | ||
| 31 | |||||
| 32 | return "push \@{ ($slot_access) }, \@_"; | ||||
| 33 | } | ||||
| 34 | |||||
| 35 | # spent 32µs within Moose::Meta::Method::Accessor::Native::Array::push::_return_value which was called 2 times, avg 16µs/call:
# once (17µs+0s) by Moose::Meta::Method::Accessor::Native::Writer::_writer_core at line 55 of Moose/Meta/Method/Accessor/Native/Writer.pm
# once (16µs+0s) by Moose::Meta::Method::Accessor::Native::Writer::_writer_core at line 78 of Moose/Meta/Method/Accessor/Native/Writer.pm | ||||
| 36 | 4 | 48µs | my ( $self, $slot_access ) = @_; | ||
| 37 | |||||
| 38 | return "return scalar \@{ ($slot_access) }"; | ||||
| 39 | } | ||||
| 40 | |||||
| 41 | 3 | 120µs | 2 | 1.69ms | # spent 869µs (46+823) within Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@41 which was called:
# once (46µs+823µs) by Moose::Meta::Attribute::Native::Trait::Array::BEGIN@23 at line 41 # spent 869µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@41
# spent 823µs making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:557] |
| 42 | |||||
| 43 | 1 | 55µs | 1; |