Profile of lib/PONAPI/DAO/Request/Role/HasFilter.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/HasFilter.pm
Statements | Executed 300009 statements in 1.27s

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
100001 | 1 | 1 | 302ms | 302ms | PONAPI::DAO::Request::Role::HasFilter::::_validate_filterPONAPI::DAO::Request::Role::HasFilter::_validate_filter
100001 | 1 | 1 | 276ms | 276ms | PONAPI::DAO::Request::Role::HasFilter::::__ANON__[lib/PONAPI/DAO/Request/Role/HasFilter.pm:10]PONAPI::DAO::Request::Role::HasFilter::__ANON__[lib/PONAPI/DAO/Request/Role/HasFilter.pm:10]
1 | 1 | 1 | 16µs | 2.37ms | PONAPI::DAO::Request::Role::HasFilter::::BEGIN@4PONAPI::DAO::Request::Role::HasFilter::BEGIN@4
1 | 1 | 1 | 9µs | 87µs | PONAPI::DAO::Request::Role::HasFilter::::BEGIN@27PONAPI::DAO::Request::Role::HasFilter::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 - `filter`
2 |  |  |  |  | package PONAPI::DAO::Request::Role::HasFilter;
3 |  |  |  |  |
4 | 2 | 146µs | 2 | 4.72ms | # spent 2.37ms (16µs+2.35) within PONAPI::DAO::Request::Role::HasFilter::BEGIN@4 which was called: # once (16µs+2.35ms) by Module::Runtime::require_module at line 4 use Moose::Role; # spent 2.37ms making 1 call to PONAPI::DAO::Request::Role::HasFilter::BEGIN@4 # spent 2.35ms making 1 call to Moose::Role::import
5 |  |  |  |  |
6 |  |  |  |  | has filter => (
7 |  |  |  |  | traits => [ 'Hash' ],
8 |  |  |  |  | is => 'ro',
9 |  |  |  |  | isa => 'HashRef',
10 | 100001 | 622ms |  |  | # spent 276ms within PONAPI::DAO::Request::Role::HasFilter::__ANON__[lib/PONAPI/DAO/Request/Role/HasFilter.pm:10] which was called 100001 times, avg 3µs/call: # 100001 times (276ms+0s) by PONAPI::DAO::Request::Retrieve::new or PONAPI::DAO::Request::RetrieveAll::new at line 51 of (eval 45)[Eval/Closure.pm:144], avg 3µs/call default => sub { +{} },
11 | 1 | 13µs | 1 | 133µs | handles => { # spent 133µs making 1 call to Moose::Role::has
12 |  |  |  |  | "has_filter" => 'count',
13 |  |  |  |  | },
14 |  |  |  |  | );
15 |  |  |  |  |
16 |  |  |  |  | # spent 302ms within PONAPI::DAO::Request::Role::HasFilter::_validate_filter which was called 100001 times, avg 3µs/call: # 100001 times (302ms+0s) by PONAPI::DAO::Request::BUILD at line 118 of lib/PONAPI/DAO/Request.pm, avg 3µs/call sub _validate_filter {
17 | 100001 | 55.6ms |  |  | my ( $self, $args ) = @_;
18 |  |  |  |  |
19 | 100001 | 595ms |  |  | return unless defined $args->{filter};
20 |  |  |  |  |
21 |  |  |  |  | $self->has_filter
22 |  |  |  |  | or $self->_bad_request( "`filter` is missing values" );
23 |  |  |  |  |
24 |  |  |  |  | return;
25 |  |  |  |  | }
26 |  |  |  |  |
27 | 3 | 39µs | 2 | 165µs | # spent 87µs (9+78) within PONAPI::DAO::Request::Role::HasFilter::BEGIN@27 which was called: # once (9µs+78µs) by Module::Runtime::require_module at line 27 no Moose::Role; 1; # spent 87µs making 1 call to PONAPI::DAO::Request::Role::HasFilter::BEGIN@27 # spent 78µs making 1 call to Moose::Role::unimport
28 |  |  |  |  |
29 |  |  |  |  | __END__