← 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/Update.pm
StatementsExecuted 9 statements in 237µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11119µs3.20msPONAPI::DAO::Request::Update::::BEGIN@4PONAPI::DAO::Request::Update::BEGIN@4
1118µs75µsPONAPI::DAO::Request::Update::::BEGIN@32PONAPI::DAO::Request::Update::BEGIN@32
0000s0sPONAPI::DAO::Request::Update::::__ANON__[lib/PONAPI/DAO/Request/Update.pm:15]PONAPI::DAO::Request::Update::__ANON__[lib/PONAPI/DAO/Request/Update.pm:15]
0000s0sPONAPI::DAO::Request::Update::::executePONAPI::DAO::Request::Update::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
2package PONAPI::DAO::Request::Update;
3
42159µs26.38ms
# spent 3.20ms (19µs+3.18) within PONAPI::DAO::Request::Update::BEGIN@4 which was called: # once (19µs+3.18ms) by PONAPI::DAO::BEGIN@12 at line 4
use Moose;
# spent 3.20ms making 1 call to PONAPI::DAO::Request::Update::BEGIN@4 # spent 3.18ms making 1 call to Moose::import
5
6114µs1567µsextends 'PONAPI::DAO::Request';
# spent 567µs making 1 call to Moose::extends
7
813µs120.8mswith 'PONAPI::DAO::Request::Role::UpdateLike',
# spent 20.8ms making 1 call to Moose::with
9 'PONAPI::DAO::Request::Role::HasData',
10 'PONAPI::DAO::Request::Role::HasDataMethods',
11 'PONAPI::DAO::Request::Role::HasID';
12
13has '+update_nothing_status' => (
14 # http://jsonapi.org/format/#crud-updating-responses-404
15 default => sub { 404 },
1615µs12.82ms);
# spent 2.82ms making 1 call to Moose::has
17
18sub execute {
19 my $self = shift;
20
21 if ( $self->is_valid ) {
22 my @ret = $self->repository->update( %{ $self } );
23
24 $self->_add_success_meta(@ret)
25 if $self->_verify_update_response(@ret);
26 }
27
28 return $self->response();
29}
30
3114µs26.09ms__PACKAGE__->meta->make_immutable;
# spent 6.08ms making 1 call to Class::MOP::Class::make_immutable # spent 11µs making 1 call to PONAPI::DAO::Request::Update::meta
32352µs2142µs
# spent 75µs (8+66) within PONAPI::DAO::Request::Update::BEGIN@32 which was called: # once (8µs+66µs) by PONAPI::DAO::BEGIN@12 at line 32
no Moose; 1;
# spent 75µs making 1 call to PONAPI::DAO::Request::Update::BEGIN@32 # spent 66µs making 1 call to Moose::unimport
33
34__END__