← Index
NYTProf Performance Profile   « line view »
For script/ponapi
  Run on Wed Feb 10 15:51:26 2016
Reported on Thu Feb 11 09:43:11 2016

Filename/usr/local/lib/perl/5.18.2/Moose/Meta/Method/Accessor/Native/Array/push.pm
StatementsExecuted 63 statements in 313µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
82220µs20µsMoose::Meta::Method::Accessor::Native::Array::push::::_return_valueMoose::Meta::Method::Accessor::Native::Array::push::_return_value
11113µs28µsMoose::Meta::Method::Accessor::Native::Array::push::::BEGIN@4Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@4
41113µs13µsMoose::Meta::Method::Accessor::Native::Array::push::::_potential_valueMoose::Meta::Method::Accessor::Native::Array::push::_potential_value
41111µs11µsMoose::Meta::Method::Accessor::Native::Array::push::::_inline_optimized_set_new_valueMoose::Meta::Method::Accessor::Native::Array::push::_inline_optimized_set_new_value
1119µs2.21msMoose::Meta::Method::Accessor::Native::Array::push::::BEGIN@7Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@7
1118µs16µsMoose::Meta::Method::Accessor::Native::Array::push::::BEGIN@5Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@5
1117µs94µsMoose::Meta::Method::Accessor::Native::Array::push::::BEGIN@34Moose::Meta::Method::Accessor::Native::Array::push::BEGIN@34
4116µs6µsMoose::Meta::Method::Accessor::Native::Array::push::::_adds_membersMoose::Meta::Method::Accessor::Native::Array::push::_adds_members
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Moose::Meta::Method::Accessor::Native::Array::push;
21400nsour $VERSION = '2.1604';
3
4223µs244µ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
use strict;
# 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
5222µs223µ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
use warnings;
# 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
72152µs24.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
use Moose::Role;
# 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
912µs121.6mswith 'Moose::Meta::Method::Accessor::Native::Array::Writer';
# spent 21.6ms making 1 call to Moose::Role::with
10
1148µ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
sub _adds_members { 1 }
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
sub _potential_value {
1441µs my $self = shift;
1541µs my ($slot_access) = @_;
16
17416µ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
sub _inline_optimized_set_new_value {
2141µs my $self = shift;
2243µs my ($inv, $new, $slot_access) = @_;
23
24412µ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
sub _return_value {
2882µs my $self = shift;
2983µs my ($slot_access) = @_;
30
31822µs return 'scalar @{ (' . $slot_access . ') }';
32}
33
34230µs2180µ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
no Moose::Role;
# 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
36114µs1;