Profile of lib/PONAPI/DAO/Request/RetrieveAll.pm

← 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
Statements | Executed 301478 statements in 1.31s

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
50245 | 1 | 1 | 2.09s | 409s | PONAPI::DAO::Request::RetrieveAll::::executePONAPI::DAO::Request::RetrieveAll::execute
1 | 1 | 1 | 19µs | 3.09ms | PONAPI::DAO::Request::RetrieveAll::::BEGIN@4PONAPI::DAO::Request::RetrieveAll::BEGIN@4
1 | 1 | 1 | 9µs | 75µs | PONAPI::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
2 |  |  |  |  | package PONAPI::DAO::Request::RetrieveAll;
3 |  |  |  |  |
4 | 2 | 131µs | 2 | 6.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 |  |  |  |  |
6 | 1 | 10µs | 1 | 606µs | extends 'PONAPI::DAO::Request'; # spent 606µs making 1 call to Moose::extends
7 |  |  |  |  |
8 | 1 | 3µs | 1 | 29.3ms | with '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 {
15 | 50245 | 28.5ms |  |  | my $self = shift;
16 | 50245 | 137ms | 50245 | 168ms | my $doc = $self->document; # spent 168ms making 50245 calls to PONAPI::DAO::Request::document, avg 3µs/call
17 |  |  |  |  |
18 | 50245 | 221ms | 50245 | 167ms | if ( $self->is_valid ) { # spent 167ms making 50245 calls to PONAPI::DAO::Request::is_valid, avg 3µs/call
19 | 50245 | 151ms | 50245 | 693ms | $doc->convert_to_collection; # spent 693ms making 50245 calls to PONAPI::Builder::Document::convert_to_collection, avg 14µs/call
20 | 50245 | 365ms | 100490 | 354s | $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 |  |  |  |  |
23 | 50245 | 403ms | 50245 | 51.6s | return $self->response(); # spent 51.6s making 50245 calls to PONAPI::DAO::Request::response, avg 1.03ms/call
24 |  |  |  |  | }
25 |  |  |  |  |
26 | 1 | 4µs | 2 | 6.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
27 | 3 | 47µs | 2 | 141µ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__