Profile of lib/PONAPI/Builder/Role/HasMeta.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/Builder/Role/HasMeta.pm
Statements | Executed 1230937 statements in 7.07s

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
1230931 | 2 | 1 | 1.87s | 1.87s | PONAPI::Builder::Role::HasMeta::::__ANON__[lib/PONAPI/Builder/Role/HasMeta.pm:11]PONAPI::Builder::Role::HasMeta::__ANON__[lib/PONAPI/Builder/Role/HasMeta.pm:11]
1 | 1 | 1 | 16µs | 2.13ms | PONAPI::Builder::Role::HasMeta::::BEGIN@4PONAPI::Builder::Role::HasMeta::BEGIN@4
1 | 1 | 1 | 7µs | 76µs | PONAPI::Builder::Role::HasMeta::::BEGIN@23PONAPI::Builder::Role::HasMeta::BEGIN@23
0 | 0 | 0 | 0s | 0s | PONAPI::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
2 |  |  |  |  | package PONAPI::Builder::Role::HasMeta;
3 |  |  |  |  |
4 | 2 | 119µs | 2 | 4.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 |  |  |  |  |
6 |  |  |  |  | has _meta => (
7 |  |  |  |  | init_arg => undef,
8 |  |  |  |  | traits => [ 'Hash' ],
9 |  |  |  |  | is => 'ro',
10 |  |  |  |  | isa => 'HashRef',
11 | 1230931 | 7.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 { +{} },
12 | 1 | 4µs | 1 | 101µs | handles => { # spent 101µs making 1 call to Moose::Role::has
13 |  |  |  |  | has_meta => 'count',
14 |  |  |  |  | }
15 |  |  |  |  | );
16 |  |  |  |  |
17 |  |  |  |  | sub add_meta {
18 |  |  |  |  | my ($self, %args) = @_;
19 |  |  |  |  | @{ $self->_meta }{ keys %args } = values %args;
20 |  |  |  |  | return $self;
21 |  |  |  |  | }
22 |  |  |  |  |
23 | 3 | 37µs | 2 | 146µ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__