Profile of Moose/Meta/Method/Accessor/Native/Array/Writer.pm

← 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/Writer.pm
Statements | Executed 21 statements in 207µs

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
4 | 1 | 1 | 31µs | 67µs | Moose::Meta::Method::Accessor::Native::Array::Writer::::_inline_coerce_new_valuesMoose::Meta::Method::Accessor::Native::Array::Writer::_inline_coerce_new_values
1 | 1 | 1 | 12µs | 23µs | Moose::Meta::Method::Accessor::Native::Array::Writer::::BEGIN@4Moose::Meta::Method::Accessor::Native::Array::Writer::BEGIN@4
4 | 1 | 1 | 8µs | 8µs | Moose::Meta::Method::Accessor::Native::Array::Writer::::_new_membersMoose::Meta::Method::Accessor::Native::Array::Writer::_new_members
1 | 1 | 1 | 7µs | 12µs | Moose::Meta::Method::Accessor::Native::Array::Writer::::BEGIN@5Moose::Meta::Method::Accessor::Native::Array::Writer::BEGIN@5
1 | 1 | 1 | 6µs | 2.03ms | Moose::Meta::Method::Accessor::Native::Array::Writer::::BEGIN@7Moose::Meta::Method::Accessor::Native::Array::Writer::BEGIN@7
0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Array::Writer::::_copy_old_valueMoose::Meta::Method::Accessor::Native::Array::Writer::_copy_old_value

Call graph for these subroutines as a Graphviz dot language file.

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 |  |  |  |  | package Moose::Meta::Method::Accessor::Native::Array::Writer;
2 | 1 | 400ns |  |  | our $VERSION = '2.1604';
3 |  |  |  |  |
4 | 2 | 22µs | 2 | 34µs | # spent 23µs (12+11) within Moose::Meta::Method::Accessor::Native::Array::Writer::BEGIN@4 which was called: # once (12µs+11µs) by Module::Runtime::require_module at line 4 use strict; # spent 23µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::Writer::BEGIN@4 # spent 11µs making 1 call to strict::import
5 | 2 | 18µs | 2 | 16µs | # spent 12µs (7+5) within Moose::Meta::Method::Accessor::Native::Array::Writer::BEGIN@5 which was called: # once (7µs+5µs) by Module::Runtime::require_module at line 5 use warnings; # spent 12µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::Writer::BEGIN@5 # spent 5µs making 1 call to warnings::import
6 |  |  |  |  |
7 | 2 | 115µs | 2 | 4.06ms | # spent 2.03ms (6µs+2.03) within Moose::Meta::Method::Accessor::Native::Array::Writer::BEGIN@7 which was called: # once (6µs+2.03ms) by Module::Runtime::require_module at line 7 use Moose::Role; # spent 2.03ms making 1 call to Moose::Meta::Method::Accessor::Native::Array::Writer::BEGIN@7 # spent 2.03ms making 1 call to Moose::Role::import
8 |  |  |  |  |
9 | 1 | 3µs | 1 | 10.8ms | with 'Moose::Meta::Method::Accessor::Native::Writer', # spent 10.8ms making 1 call to Moose::Role::with
10 |  |  |  |  | 'Moose::Meta::Method::Accessor::Native::Array',
11 |  |  |  |  | 'Moose::Meta::Method::Accessor::Native::Collection';
12 |  |  |  |  |
13 |  |  |  |  | # spent 67µs (31+36) within Moose::Meta::Method::Accessor::Native::Array::Writer::_inline_coerce_new_values which was called 4 times, avg 17µs/call: # 4 times (31µs+36µs) by Moose::Meta::Method::Accessor::Native::Writer::_inline_writer_core at line 52 of Moose/Meta/Method/Accessor/Native/Writer.pm, avg 17µs/call sub _inline_coerce_new_values {
14 | 4 | 1µs |  |  | my $self = shift;
15 | 4 | 28µs | 4 | 36µs | $self->Moose::Meta::Method::Accessor::Native::Collection::_inline_coerce_new_values(@_); # spent 36µs making 4 calls to Moose::Meta::Method::Accessor::Native::Collection::_inline_coerce_new_values, avg 9µs/call
16 |  |  |  |  | }
17 |  |  |  |  |
18 | 4 | 10µs |  |  | # spent 8µs within Moose::Meta::Method::Accessor::Native::Array::Writer::_new_members which was called 4 times, avg 2µs/call: # 4 times (8µs+0s) by Moose::Meta::Method::Accessor::Native::Collection::_inline_tc_code at line 61 of Moose/Meta/Method/Accessor/Native/Collection.pm, avg 2µs/call sub _new_members { '@_' }
19 |  |  |  |  |
20 |  |  |  |  | sub _copy_old_value {
21 |  |  |  |  | my $self = shift;
22 |  |  |  |  | my ($slot_access) = @_;
23 |  |  |  |  |
24 |  |  |  |  | return '[ @{(' . $slot_access . ')} ]';
25 |  |  |  |  | }
26 |  |  |  |  |
27 | 1 | 9µs |  |  | 1;