← 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
StatementsExecuted 99518 statements in 406ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
4975611398ms534msPONAPI::DAO::Request::Role::HasID::::_validate_idPONAPI::DAO::Request::Role::HasID::_validate_id
11121µs2.65msPONAPI::DAO::Request::Role::HasID::::BEGIN@4PONAPI::DAO::Request::Role::HasID::BEGIN@4
1118µs84µsPONAPI::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`
2package PONAPI::DAO::Request::Role::HasID;
3
42113µs25.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
611µs1142µshas 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 {
134975623.4ms my $self = shift;
14
1549756383ms49756137ms $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
19344µs2160µ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__