← 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/Retrieve.pm
StatementsExecuted 248788 statements in 1.26s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
49756111.91s198sPONAPI::DAO::Request::Retrieve::::executePONAPI::DAO::Request::Retrieve::execute
11116µs2.99msPONAPI::DAO::Request::Retrieve::::BEGIN@4PONAPI::DAO::Request::Retrieve::BEGIN@4
1118µs76µsPONAPI::DAO::Request::Retrieve::::BEGIN@30PONAPI::DAO::Request::Retrieve::BEGIN@30
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 - retrieve
2package PONAPI::DAO::Request::Retrieve;
3
42124µs25.96ms
# spent 2.99ms (16µs+2.97) within PONAPI::DAO::Request::Retrieve::BEGIN@4 which was called: # once (16µs+2.97ms) by PONAPI::DAO::BEGIN@6 at line 4
use Moose;
# spent 2.99ms making 1 call to PONAPI::DAO::Request::Retrieve::BEGIN@4 # spent 2.97ms making 1 call to Moose::import
5
611µs1562msextends 'PONAPI::DAO::Request';
# spent 562ms making 1 call to Moose::extends
7
814µs158.4mswith 'PONAPI::DAO::Request::Role::HasFields',
# spent 58.4ms making 1 call to Moose::with
9 'PONAPI::DAO::Request::Role::HasFilter',
10 'PONAPI::DAO::Request::Role::HasInclude',
11 # paginate included resources
12 'PONAPI::DAO::Request::Role::HasPage',
13 # sort is needed by page
14 'PONAPI::DAO::Request::Role::HasSort',
15 'PONAPI::DAO::Request::Role::HasID';
16
17
# spent 198s (1.91+196) within PONAPI::DAO::Request::Retrieve::execute which was called 49756 times, avg 3.97ms/call: # 49756 times (1.91s+196s) by PONAPI::DAO::_action at line 58 of lib/PONAPI/DAO.pm, avg 3.97ms/call
sub execute {
184975626.7ms my $self = shift;
19
2049756154ms49756171ms if ( $self->is_valid ) {
# spent 171ms making 49756 calls to PONAPI::DAO::Request::is_valid, avg 3µs/call
2149756431ms99512160s $self->repository->retrieve( %{ $self } );
# spent 160s making 49756 calls to Test::PONAPI::Repository::MockDB::retrieve, avg 3.22ms/call # spent 56.6ms making 49756 calls to PONAPI::DAO::Request::repository, avg 1µs/call
2249756300ms99512306ms $self->document->add_null_resource
# spent 193ms making 49756 calls to PONAPI::DAO::Request::document, avg 4µs/call # spent 113ms making 49756 calls to PONAPI::Builder::Document::has_resource_builders, avg 2µs/call
23 unless $self->document->has_resource_builders;
24 }
25
2649756347ms4975635.3s return $self->response();
# spent 35.3s making 49756 calls to PONAPI::DAO::Request::response, avg 708µs/call
27}
28
2914µs210.2ms__PACKAGE__->meta->make_immutable;
# spent 10.2ms making 1 call to Class::MOP::Class::make_immutable # spent 15µs making 1 call to PONAPI::DAO::Request::Retrieve::meta
30343µs2144µs
# spent 76µs (8+68) within PONAPI::DAO::Request::Retrieve::BEGIN@30 which was called: # once (8µs+68µs) by PONAPI::DAO::BEGIN@6 at line 30
no Moose; 1;
# spent 76µs making 1 call to PONAPI::DAO::Request::Retrieve::BEGIN@30 # spent 68µs making 1 call to Moose::unimport
31
32__END__