Profile of lib/PONAPI/Builder/Resource/Identifier.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 | /home/mickey/git_tree/PONAPI/Server/lib/PONAPI/Builder/Resource/Identifier.pm
Statements | Executed 3586971 statements in 5.64s

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
597827 | 2 | 1 | 9.54s | 12.5s | PONAPI::Builder::Resource::Identifier::::buildPONAPI::Builder::Resource::Identifier::build
1 | 1 | 1 | 19µs | 3.14ms | PONAPI::Builder::Resource::Identifier::::BEGIN@4PONAPI::Builder::Resource::Identifier::BEGIN@4
1 | 1 | 1 | 8µs | 90µs | PONAPI::Builder::Resource::Identifier::::BEGIN@24PONAPI::Builder::Resource::Identifier::BEGIN@24

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

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 |  |  |  |  | # ABSTRACT: document builder - resource identifier
2 |  |  |  |  | package PONAPI::Builder::Resource::Identifier;
3 |  |  |  |  |
4 | 2 | 128µs | 2 | 6.25ms | # spent 3.14ms (19µs+3.12) within PONAPI::Builder::Resource::Identifier::BEGIN@4 which was called: # once (19µs+3.12ms) by PONAPI::Builder::Relationship::BEGIN@6 at line 4 use Moose; # spent 3.14ms making 1 call to PONAPI::Builder::Resource::Identifier::BEGIN@4 # spent 3.12ms making 1 call to Moose::import
5 |  |  |  |  |
6 | 1 | 3µs | 1 | 77.2ms | with 'PONAPI::Builder', # spent 77.2ms making 1 call to Moose::with
7 |  |  |  |  | 'PONAPI::Builder::Role::HasMeta';
8 |  |  |  |  |
9 | 1 | 2µs | 1 | 5.43ms | has id => ( is => 'ro', isa => 'Str', required => 1 ); # spent 5.43ms making 1 call to Moose::has
10 | 1 | 1µs | 1 | 1.26ms | has type => ( is => 'ro', isa => 'Str', required => 1 ); # spent 1.26ms making 1 call to Moose::has
11 |  |  |  |  |
12 |  |  |  |  | # spent 12.5s (9.54+2.99) within PONAPI::Builder::Resource::Identifier::build which was called 597827 times, avg 21µs/call: # 303470 times (5.07s+1.65s) by PONAPI::Builder::Relationship::build at line 86 of lib/PONAPI/Builder/Relationship.pm, avg 22µs/call # 294357 times (4.47s+1.34s) by PONAPI::Builder::Relationship::build at line 81 of lib/PONAPI/Builder/Relationship.pm, avg 20µs/call sub build {
13 | 597827 | 145ms |  |  | my $self = $_[0];
14 | 597827 | 220ms |  |  | my $result = {};
15 |  |  |  |  |
16 | 597827 | 1.15s | 597827 | 877ms | $result->{id} = $self->id; # spent 877ms making 597827 calls to PONAPI::Builder::Resource::Identifier::id, avg 1µs/call
17 | 597827 | 1.08s | 597827 | 977ms | $result->{type} = $self->type; # spent 977ms making 597827 calls to PONAPI::Builder::Resource::Identifier::type, avg 2µs/call
18 | 597827 | 762ms | 597827 | 1.13s | $result->{meta} = $self->_meta if $self->has_meta; # spent 1.13s making 597827 calls to PONAPI::Builder::Resource::Identifier::has_meta, avg 2µs/call
19 |  |  |  |  |
20 | 597827 | 2.29s |  |  | return $result;
21 |  |  |  |  | }
22 |  |  |  |  |
23 | 1 | 7µs | 2 | 17.0ms | __PACKAGE__->meta->make_immutable; # spent 17.0ms making 1 call to Class::MOP::Class::make_immutable # spent 12µs making 1 call to PONAPI::Builder::Resource::Identifier::meta
24 | 3 | 65µs | 2 | 172µs | # spent 90µs (8+82) within PONAPI::Builder::Resource::Identifier::BEGIN@24 which was called: # once (8µs+82µs) by PONAPI::Builder::Relationship::BEGIN@6 at line 24 no Moose; 1; # spent 90µs making 1 call to PONAPI::Builder::Resource::Identifier::BEGIN@24 # spent 82µs making 1 call to Moose::unimport
25 |  |  |  |  |
26 |  |  |  |  | __END__