Profile of lib/PONAPI/DAO/Request/Role/HasPage.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/HasPage.pm
Statements | Executed 200008 statements in 580ms

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
100001 | 1 | 1 | 303ms | 303ms | PONAPI::DAO::Request::Role::HasPage::::_validate_pagePONAPI::DAO::Request::Role::HasPage::_validate_page
1 | 1 | 1 | 16µs | 2.00ms | PONAPI::DAO::Request::Role::HasPage::::BEGIN@4PONAPI::DAO::Request::Role::HasPage::BEGIN@4
1 | 1 | 1 | 7µs | 78µs | PONAPI::DAO::Request::Role::HasPage::::BEGIN@26PONAPI::DAO::Request::Role::HasPage::BEGIN@26

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 - `page`
2 |  |  |  |  | package PONAPI::DAO::Request::Role::HasPage;
3 |  |  |  |  |
4 | 2 | 106µs | 2 | 3.98ms | # spent 2.00ms (16µs+1.98) within PONAPI::DAO::Request::Role::HasPage::BEGIN@4 which was called: # once (16µs+1.98ms) by Module::Runtime::require_module at line 4 use Moose::Role; # spent 2.00ms making 1 call to PONAPI::DAO::Request::Role::HasPage::BEGIN@4 # spent 1.98ms making 1 call to Moose::Role::import
5 |  |  |  |  |
6 | 1 | 3µs | 1 | 93µs | has page => ( # spent 93µs making 1 call to Moose::Role::has
7 |  |  |  |  | traits => [ 'Hash' ],
8 |  |  |  |  | is => 'ro',
9 |  |  |  |  | isa => 'HashRef',
10 |  |  |  |  | handles => {
11 |  |  |  |  | "has_page" => 'count',
12 |  |  |  |  | },
13 |  |  |  |  | );
14 |  |  |  |  |
15 |  |  |  |  | # spent 303ms within PONAPI::DAO::Request::Role::HasPage::_validate_page which was called 100001 times, avg 3µs/call: # 100001 times (303ms+0s) by PONAPI::DAO::Request::BUILD at line 120 of lib/PONAPI/DAO/Request.pm, avg 3µs/call sub _validate_page {
16 | 100001 | 45.0ms |  |  | my ( $self, $args ) = @_;
17 |  |  |  |  |
18 | 100001 | 535ms |  |  | return unless defined $args->{page};
19 |  |  |  |  |
20 |  |  |  |  | $self->has_page
21 |  |  |  |  | or $self->_bad_request( "`page` is missing values" );
22 |  |  |  |  |
23 |  |  |  |  | return;
24 |  |  |  |  | }
25 |  |  |  |  |
26 | 3 | 31µs | 2 | 150µs | # spent 78µs (7+71) within PONAPI::DAO::Request::Role::HasPage::BEGIN@26 which was called: # once (7µs+71µs) by Module::Runtime::require_module at line 26 no Moose::Role; 1; # spent 78µs making 1 call to PONAPI::DAO::Request::Role::HasPage::BEGIN@26 # spent 71µs making 1 call to Moose::Role::unimport
27 |  |  |  |  |
28 |  |  |  |  | __END__