Filename | /home/mickey/git_tree/PONAPI/Server/lib/PONAPI/Builder/Role/HasMeta.pm |
Statements | Executed 1230937 statements in 7.07s |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1230931 | 2 | 1 | 1.87s | 1.87s | __ANON__[lib/PONAPI/Builder/Role/HasMeta.pm:11] | PONAPI::Builder::Role::HasMeta::
1 | 1 | 1 | 16µs | 2.13ms | BEGIN@4 | PONAPI::Builder::Role::HasMeta::
1 | 1 | 1 | 7µs | 76µs | BEGIN@23 | PONAPI::Builder::Role::HasMeta::
0 | 0 | 0 | 0s | 0s | add_meta | PONAPI::Builder::Role::HasMeta::
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 # 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 | ||
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 # 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__ |