← 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/HasSort.pm
StatementsExecuted 325315 statements in 1.12s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
10000111466ms556msPONAPI::DAO::Request::Role::HasSort::::_validate_sortPONAPI::DAO::Request::Role::HasSort::_validate_sort
7469521211ms211msPONAPI::DAO::Request::Role::HasSort::::__ANON__[lib/PONAPI/DAO/Request/Role/HasSort.pm:10]PONAPI::DAO::Request::Role::HasSort::__ANON__[lib/PONAPI/DAO/Request/Role/HasSort.pm:10]
11117µs7.53msPONAPI::DAO::Request::Role::HasSort::::BEGIN@4PONAPI::DAO::Request::Role::HasSort::BEGIN@4
1118µs84µsPONAPI::DAO::Request::Role::HasSort::::BEGIN@27PONAPI::DAO::Request::Role::HasSort::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 role - `sort`
2package PONAPI::DAO::Request::Role::HasSort;
3
42170µs215.1ms
# spent 7.53ms (17µs+7.52) within PONAPI::DAO::Request::Role::HasSort::BEGIN@4 which was called: # once (17µs+7.52ms) by Module::Runtime::require_module at line 4
use Moose::Role;
# spent 7.53ms making 1 call to PONAPI::DAO::Request::Role::HasSort::BEGIN@4 # spent 7.52ms making 1 call to Moose::Role::import
5
6has sort => (
7 traits => [ 'Array' ],
8 is => 'ro',
9 isa => 'ArrayRef',
1074695494ms
# spent 211ms within PONAPI::DAO::Request::Role::HasSort::__ANON__[lib/PONAPI/DAO/Request/Role/HasSort.pm:10] which was called 74695 times, avg 3µs/call: # 49756 times (140ms+0s) by PONAPI::DAO::Request::Retrieve::new at line 145 of (eval 45)[Eval/Closure.pm:144], avg 3µs/call # 24939 times (70.1ms+0s) by PONAPI::DAO::Request::RetrieveAll::new at line 138 of (eval 45)[Eval/Closure.pm:144], avg 3µs/call
default => sub { +[] },
11113µs1129µs handles => {
# spent 129µs making 1 call to Moose::Role::has
12 "has_sort" => 'count',
13 },
14);
15
16
# spent 556ms (466+90.1) within PONAPI::DAO::Request::Role::HasSort::_validate_sort which was called 100001 times, avg 6µs/call: # 100001 times (466ms+90.1ms) by PONAPI::DAO::Request::BUILD at line 119 of lib/PONAPI/DAO/Request.pm, avg 6µs/call
sub _validate_sort {
1710000145.9ms my ( $self, $args ) = @_;
18
19100001358ms return unless defined $args->{sort};
20
212530665.7ms2530690.1ms $self->has_sort
# spent 90.1ms making 25306 calls to PONAPI::DAO::Request::RetrieveAll::has_sort, avg 4µs/call
22 or $self->_bad_request( "`sort` is missing values" );
23
2425306157ms return;
25}
26
27335µs2161µs
# spent 84µs (8+76) within PONAPI::DAO::Request::Role::HasSort::BEGIN@27 which was called: # once (8µs+76µs) by Module::Runtime::require_module at line 27
no Moose::Role; 1;
# spent 84µs making 1 call to PONAPI::DAO::Request::Role::HasSort::BEGIN@27 # spent 76µs making 1 call to Moose::Role::unimport
28
29__END__