← 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/RetrieveAll.pm
StatementsExecuted 301478 statements in 1.31s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
50245112.09s409sPONAPI::DAO::Request::RetrieveAll::::executePONAPI::DAO::Request::RetrieveAll::execute
11119µs3.09msPONAPI::DAO::Request::RetrieveAll::::BEGIN@4PONAPI::DAO::Request::RetrieveAll::BEGIN@4
1119µs75µsPONAPI::DAO::Request::RetrieveAll::::BEGIN@27PONAPI::DAO::Request::RetrieveAll::BEGIN@27
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 all
2package PONAPI::DAO::Request::RetrieveAll;
3
42131µs26.15ms
# spent 3.09ms (19µs+3.07) within PONAPI::DAO::Request::RetrieveAll::BEGIN@4 which was called: # once (19µs+3.07ms) by PONAPI::DAO::BEGIN@7 at line 4
use Moose;
# spent 3.09ms making 1 call to PONAPI::DAO::Request::RetrieveAll::BEGIN@4 # spent 3.07ms making 1 call to Moose::import
5
6110µs1606µsextends 'PONAPI::DAO::Request';
# spent 606µs making 1 call to Moose::extends
7
813µs129.3mswith 'PONAPI::DAO::Request::Role::HasFields',
# spent 29.3ms making 1 call to Moose::with
9 'PONAPI::DAO::Request::Role::HasFilter',
10 'PONAPI::DAO::Request::Role::HasInclude',
11 'PONAPI::DAO::Request::Role::HasPage',
12 'PONAPI::DAO::Request::Role::HasSort';
13
14
# spent 409s (2.09+407) within PONAPI::DAO::Request::RetrieveAll::execute which was called 50245 times, avg 8.14ms/call: # 50245 times (2.09s+407s) by PONAPI::DAO::_action at line 58 of lib/PONAPI/DAO.pm, avg 8.14ms/call
sub execute {
155024528.5ms my $self = shift;
1650245137ms50245168ms my $doc = $self->document;
# spent 168ms making 50245 calls to PONAPI::DAO::Request::document, avg 3µs/call
17
1850245221ms50245167ms if ( $self->is_valid ) {
# spent 167ms making 50245 calls to PONAPI::DAO::Request::is_valid, avg 3µs/call
1950245151ms50245693ms $doc->convert_to_collection;
# spent 693ms making 50245 calls to PONAPI::Builder::Document::convert_to_collection, avg 14µs/call
2050245365ms100490354s $self->repository->retrieve_all( %{ $self } );
# spent 354s making 50245 calls to Test::PONAPI::Repository::MockDB::retrieve_all, avg 7.04ms/call # spent 65.2ms making 50245 calls to PONAPI::DAO::Request::repository, avg 1µs/call
21 }
22
2350245403ms5024551.6s return $self->response();
# spent 51.6s making 50245 calls to PONAPI::DAO::Request::response, avg 1.03ms/call
24}
25
2614µs26.30ms__PACKAGE__->meta->make_immutable;
# spent 6.28ms making 1 call to Class::MOP::Class::make_immutable # spent 17µs making 1 call to PONAPI::DAO::Request::RetrieveAll::meta
27347µs2141µs
# spent 75µs (9+66) within PONAPI::DAO::Request::RetrieveAll::BEGIN@27 which was called: # once (9µs+66µs) by PONAPI::DAO::BEGIN@7 at line 27
no Moose; 1;
# spent 75µs making 1 call to PONAPI::DAO::Request::RetrieveAll::BEGIN@27 # spent 66µs making 1 call to Moose::unimport
28
29__END__