← 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/DAO/Request/UpdateRelationships.pm
StatementsExecuted 9 statements in 233µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11118µs3.13msPONAPI::DAO::Request::UpdateRelationships::::BEGIN@4PONAPI::DAO::Request::UpdateRelationships::BEGIN@4
1119µs94µsPONAPI::DAO::Request::UpdateRelationships::::BEGIN@35PONAPI::DAO::Request::UpdateRelationships::BEGIN@35
0000s0sPONAPI::DAO::Request::UpdateRelationships::::check_data_type_matchPONAPI::DAO::Request::UpdateRelationships::check_data_type_match
0000s0sPONAPI::DAO::Request::UpdateRelationships::::executePONAPI::DAO::Request::UpdateRelationships::execute
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# ABSTRACT: DAO request - update relationships
2package PONAPI::DAO::Request::UpdateRelationships;
3
42155µs26.24ms
# spent 3.13ms (18µs+3.11) within PONAPI::DAO::Request::UpdateRelationships::BEGIN@4 which was called: # once (18µs+3.11ms) by PONAPI::DAO::BEGIN@13 at line 4
use Moose;
# spent 3.13ms making 1 call to PONAPI::DAO::Request::UpdateRelationships::BEGIN@4 # spent 3.11ms making 1 call to Moose::import
5
6114µs1621µsextends 'PONAPI::DAO::Request';
# spent 621µs making 1 call to Moose::extends
7
814µs114.9mswith 'PONAPI::DAO::Request::Role::UpdateLike',
# spent 14.9ms making 1 call to Moose::with
9 'PONAPI::DAO::Request::Role::HasDataMethods',
10 'PONAPI::DAO::Request::Role::HasID',
11 'PONAPI::DAO::Request::Role::HasRelationshipType';
12
1313µs13.90mshas data => (
# spent 3.90ms making 1 call to Moose::has
14 is => 'ro',
15 isa => 'Maybe[HashRef|ArrayRef]',
16 predicate => 'has_data',
17);
18
19sub check_data_type_match { 1 } # to avoid code duplications in HasDataMethods
20
21sub execute {
22 my $self = shift;
23 if ( $self->is_valid ) {
24 my @ret = $self->repository->update_relationships( %{ $self } );
25
26 $self->_add_success_meta(@ret)
27 if $self->_verify_update_response(@ret);
28 }
29
30 return $self->response();
31}
32
33
3413µs211.0ms__PACKAGE__->meta->make_immutable;
# spent 11.0ms making 1 call to Class::MOP::Class::make_immutable # spent 16µs making 1 call to PONAPI::DAO::Request::UpdateRelationships::meta
35354µs2178µs
# spent 94µs (9+85) within PONAPI::DAO::Request::UpdateRelationships::BEGIN@35 which was called: # once (9µs+85µs) by PONAPI::DAO::BEGIN@13 at line 35
no Moose; 1;
# spent 94µs making 1 call to PONAPI::DAO::Request::UpdateRelationships::BEGIN@35 # spent 85µs making 1 call to Moose::unimport
36
37__END__