← 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/Builder/Role/HasMeta.pm
StatementsExecuted 1230937 statements in 7.07s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1230931211.87s1.87sPONAPI::Builder::Role::HasMeta::::__ANON__[lib/PONAPI/Builder/Role/HasMeta.pm:11]PONAPI::Builder::Role::HasMeta::__ANON__[lib/PONAPI/Builder/Role/HasMeta.pm:11]
11116µs2.13msPONAPI::Builder::Role::HasMeta::::BEGIN@4PONAPI::Builder::Role::HasMeta::BEGIN@4
1117µs76µsPONAPI::Builder::Role::HasMeta::::BEGIN@23PONAPI::Builder::Role::HasMeta::BEGIN@23
0000s0sPONAPI::Builder::Role::HasMeta::::add_metaPONAPI::Builder::Role::HasMeta::add_meta
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# ABSTRACT: document builder - role - meta
2package PONAPI::Builder::Role::HasMeta;
3
42119µs24.23ms
# spent 2.13ms (16µs+2.11) within PONAPI::Builder::Role::HasMeta::BEGIN@4 which was called: # once (16µs+2.11ms) by Module::Runtime::require_module at line 4
use Moose::Role;
# spent 2.13ms making 1 call to PONAPI::Builder::Role::HasMeta::BEGIN@4 # spent 2.11ms making 1 call to Moose::Role::import
5
6has _meta => (
7 init_arg => undef,
8 traits => [ 'Hash' ],
9 is => 'ro',
10 isa => 'HashRef',
1112309317.07s
# spent 1.87s within PONAPI::Builder::Role::HasMeta::__ANON__[lib/PONAPI/Builder/Role/HasMeta.pm:11] which was called 1230931 times, avg 2µs/call: # 899272 times (1.45s+0s) by PONAPI::Builder::Document::new or PONAPI::Builder::Links::new or PONAPI::Builder::Resource::new at line 40 of (eval 45)[Eval/Closure.pm:144], avg 2µs/call # 331659 times (422ms+0s) by PONAPI::Builder::Relationship::new or PONAPI::Builder::Resource::Identifier::new at line 39 of (eval 45)[Eval/Closure.pm:144], avg 1µs/call
default => sub { +{} },
1214µs1101µs handles => {
# spent 101µs making 1 call to Moose::Role::has
13 has_meta => 'count',
14 }
15);
16
17sub add_meta {
18 my ($self, %args) = @_;
19 @{ $self->_meta }{ keys %args } = values %args;
20 return $self;
21}
22
23337µs2146µs
# spent 76µs (7+70) within PONAPI::Builder::Role::HasMeta::BEGIN@23 which was called: # once (7µs+70µs) by Module::Runtime::require_module at line 23
no Moose::Role; 1;
# spent 76µs making 1 call to PONAPI::Builder::Role::HasMeta::BEGIN@23 # spent 70µs making 1 call to Moose::Role::unimport
24
25__END__