Profile of lib/PONAPI/DAO/Request/Role/HasID.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/Role/HasID.pm
Statements | Executed 99518 statements in 406ms

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
49756 | 1 | 1 | 398ms | 534ms | PONAPI::DAO::Request::Role::HasID::::_validate_idPONAPI::DAO::Request::Role::HasID::_validate_id
1 | 1 | 1 | 21µs | 2.65ms | PONAPI::DAO::Request::Role::HasID::::BEGIN@4PONAPI::DAO::Request::Role::HasID::BEGIN@4
1 | 1 | 1 | 8µs | 84µs | PONAPI::DAO::Request::Role::HasID::::BEGIN@19PONAPI::DAO::Request::Role::HasID::BEGIN@19

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 role - `id`
2 |  |  |  |  | package PONAPI::DAO::Request::Role::HasID;
3 |  |  |  |  |
4 | 2 | 113µs | 2 | 5.28ms | # spent 2.65ms (21µs+2.63) within PONAPI::DAO::Request::Role::HasID::BEGIN@4 which was called: # once (21µs+2.63ms) by Module::Runtime::require_module at line 4 use Moose::Role; # spent 2.65ms making 1 call to PONAPI::DAO::Request::Role::HasID::BEGIN@4 # spent 2.63ms making 1 call to Moose::Role::import
5 |  |  |  |  |
6 | 1 | 1µs | 1 | 142µs | has id => ( # spent 142µs making 1 call to Moose::Role::has
7 |  |  |  |  | is => 'ro',
8 |  |  |  |  | isa => 'Str',
9 |  |  |  |  | predicate => 'has_id',
10 |  |  |  |  | );
11 |  |  |  |  |
12 |  |  |  |  | # spent 534ms (398+137) within PONAPI::DAO::Request::Role::HasID::_validate_id which was called 49756 times, avg 11µs/call: # 49756 times (398ms+137ms) by PONAPI::DAO::Request::BUILD at line 114 of lib/PONAPI/DAO/Request.pm, avg 11µs/call sub _validate_id {
13 | 49756 | 23.4ms |  |  | my $self = shift;
14 |  |  |  |  |
15 | 49756 | 383ms | 49756 | 137ms | $self->_bad_request( "`id` is missing for this request" ) # spent 137ms making 49756 calls to PONAPI::DAO::Request::Retrieve::has_id, avg 3µs/call
16 |  |  |  |  | unless $self->has_id;
17 |  |  |  |  | }
18 |  |  |  |  |
19 | 3 | 44µs | 2 | 160µs | # spent 84µs (8+76) within PONAPI::DAO::Request::Role::HasID::BEGIN@19 which was called: # once (8µs+76µs) by Module::Runtime::require_module at line 19 no Moose::Role; 1; # spent 84µs making 1 call to PONAPI::DAO::Request::Role::HasID::BEGIN@19 # spent 76µs making 1 call to Moose::Role::unimport
20 |  |  |  |  |
21 |  |  |  |  | __END__