← 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
StatementsExecuted 3586971 statements in 5.64s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
597827219.54s12.5sPONAPI::Builder::Resource::Identifier::::buildPONAPI::Builder::Resource::Identifier::build
11119µs3.14msPONAPI::Builder::Resource::Identifier::::BEGIN@4PONAPI::Builder::Resource::Identifier::BEGIN@4
1118µs90µsPONAPI::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
2package PONAPI::Builder::Resource::Identifier;
3
42128µs26.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
613µs177.2mswith 'PONAPI::Builder',
# spent 77.2ms making 1 call to Moose::with
7 'PONAPI::Builder::Role::HasMeta';
8
912µs15.43mshas id => ( is => 'ro', isa => 'Str', required => 1 );
# spent 5.43ms making 1 call to Moose::has
1011µs11.26mshas 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 {
13597827145ms my $self = $_[0];
14597827220ms my $result = {};
15
165978271.15s597827877ms $result->{id} = $self->id;
# spent 877ms making 597827 calls to PONAPI::Builder::Resource::Identifier::id, avg 1µs/call
175978271.08s597827977ms $result->{type} = $self->type;
# spent 977ms making 597827 calls to PONAPI::Builder::Resource::Identifier::type, avg 2µs/call
18597827762ms5978271.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
205978272.29s return $result;
21}
22
2317µs217.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
24365µs2172µ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__