← 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
StatementsExecuted 200008 statements in 580ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
10000111303ms303msPONAPI::DAO::Request::Role::HasPage::::_validate_pagePONAPI::DAO::Request::Role::HasPage::_validate_page
11116µs2.00msPONAPI::DAO::Request::Role::HasPage::::BEGIN@4PONAPI::DAO::Request::Role::HasPage::BEGIN@4
1117µs78µsPONAPI::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`
2package PONAPI::DAO::Request::Role::HasPage;
3
42106µs23.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
613µs193µshas 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 {
1610000145.0ms my ( $self, $args ) = @_;
17
18100001535ms return unless defined $args->{page};
19
20 $self->has_page
21 or $self->_bad_request( "`page` is missing values" );
22
23 return;
24}
25
26331µs2150µ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__