Filename | /usr/local/lib/perl/5.18.2/Moose/Meta/Method/Accessor/Native/Hash.pm |
Statements | Executed 28 statements in 228µs |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
6 | 2 | 2 | 63µs | 79µs | _inline_check_var_is_valid_key | Moose::Meta::Method::Accessor::Native::Hash::
1 | 1 | 1 | 12µs | 29µs | BEGIN@4 | Moose::Meta::Method::Accessor::Native::Hash::
1 | 1 | 1 | 11µs | 18µs | BEGIN@5 | Moose::Meta::Method::Accessor::Native::Hash::
1 | 1 | 1 | 8µs | 88µs | BEGIN@26 | Moose::Meta::Method::Accessor::Native::Hash::
1 | 1 | 1 | 7µs | 2.33ms | BEGIN@7 | Moose::Meta::Method::Accessor::Native::Hash::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package Moose::Meta::Method::Accessor::Native::Hash; | ||||
2 | 1 | 300ns | our $VERSION = '2.1604'; | ||
3 | |||||
4 | 2 | 24µs | 2 | 45µs | # spent 29µs (12+16) within Moose::Meta::Method::Accessor::Native::Hash::BEGIN@4 which was called:
# once (12µs+16µs) by Module::Runtime::require_module at line 4 # spent 29µs making 1 call to Moose::Meta::Method::Accessor::Native::Hash::BEGIN@4
# spent 16µs making 1 call to strict::import |
5 | 2 | 21µs | 2 | 25µs | # spent 18µs (11+7) within Moose::Meta::Method::Accessor::Native::Hash::BEGIN@5 which was called:
# once (11µs+7µs) by Module::Runtime::require_module at line 5 # spent 18µs making 1 call to Moose::Meta::Method::Accessor::Native::Hash::BEGIN@5
# spent 7µs making 1 call to warnings::import |
6 | |||||
7 | 2 | 102µs | 2 | 4.65ms | # spent 2.33ms (7µs+2.32) within Moose::Meta::Method::Accessor::Native::Hash::BEGIN@7 which was called:
# once (7µs+2.32ms) by Module::Runtime::require_module at line 7 # spent 2.33ms making 1 call to Moose::Meta::Method::Accessor::Native::Hash::BEGIN@7
# spent 2.32ms making 1 call to Moose::Role::import |
8 | |||||
9 | # spent 79µs (63+16) within Moose::Meta::Method::Accessor::Native::Hash::_inline_check_var_is_valid_key which was called 6 times, avg 13µs/call:
# 3 times (40µs+9µs) by Moose::Meta::Method::Accessor::Native::Hash::get::_inline_check_arguments at line 18 of Moose/Meta/Method/Accessor/Native/Hash/get.pm, avg 16µs/call
# 3 times (23µs+7µs) by Moose::Meta::Method::Accessor::Native::Hash::exists::_inline_check_arguments at line 19 of Moose/Meta/Method/Accessor/Native/Hash/exists.pm, avg 10µs/call | ||||
10 | 6 | 2µs | my $self = shift; | ||
11 | 6 | 3µs | my ($var) = @_; | ||
12 | |||||
13 | return ( | ||||
14 | 6 | 47µs | 12 | 16µs | 'if (!defined(' . $var . ')) {', # spent 11µs making 6 calls to Class::MOP::Method::Accessor::_inline_throw_exception, avg 2µs/call
# spent 6µs making 6 calls to Moose::Meta::Method::Delegation::delegate_to_method, avg 917ns/call |
15 | $self->_inline_throw_exception( InvalidArgumentToMethod => | ||||
16 | 'argument => '.$var.','. | ||||
17 | 'method_name => "'.$self->delegate_to_method.'",'. | ||||
18 | 'type_of_argument => "defined value",'. | ||||
19 | 'type => "Defined",'. | ||||
20 | 'argument_noun => "key"', | ||||
21 | ) . ';', | ||||
22 | '}', | ||||
23 | ); | ||||
24 | } | ||||
25 | |||||
26 | 2 | 24µs | 2 | 169µs | # spent 88µs (8+80) within Moose::Meta::Method::Accessor::Native::Hash::BEGIN@26 which was called:
# once (8µs+80µs) by Module::Runtime::require_module at line 26 # spent 88µs making 1 call to Moose::Meta::Method::Accessor::Native::Hash::BEGIN@26
# spent 80µs making 1 call to Moose::Role::unimport |
27 | |||||
28 | 1 | 3µs | 1; |