| Filename | /Users/dde/perl5/perlbrew/perls/5.18.0t/lib/site_perl/5.18.0/darwin-thread-multi-2level/Moose/Meta/Method/Accessor/Native/Writer.pm |
| Statements | Executed 560 statements in 1.87ms |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 13 | 1 | 1 | 615µs | 8.46ms | Moose::Meta::Method::Accessor::Native::Writer::_inline_writer_core |
| 21 | 2 | 2 | 191µs | 920µs | Moose::Meta::Method::Accessor::Native::Writer::_is_root_type |
| 17 | 2 | 2 | 148µs | 967µs | Moose::Meta::Method::Accessor::Native::Writer::_constraint_must_be_checked |
| 13 | 1 | 1 | 112µs | 522µs | Moose::Meta::Method::Accessor::Native::Writer::_inline_set_new_value |
| 13 | 1 | 1 | 108µs | 9.22ms | Moose::Meta::Method::Accessor::Native::Writer::_generate_method |
| 13 | 1 | 1 | 88µs | 114µs | Moose::Meta::Method::Accessor::Native::Writer::_get_is_lvalue |
| 13 | 1 | 1 | 44µs | 145µs | Moose::Meta::Method::Accessor::Native::Writer::_inline_copy_native_value |
| 1 | 1 | 1 | 9µs | 9µs | Moose::Meta::Method::Accessor::Native::Writer::BEGIN@2 |
| 13 | 1 | 1 | 9µs | 9µs | Moose::Meta::Method::Accessor::Native::Writer::_inline_capture_return_value |
| 13 | 1 | 1 | 9µs | 9µs | Moose::Meta::Method::Accessor::Native::Writer::_inline_process_arguments |
| 1 | 1 | 1 | 8µs | 1.83ms | Moose::Meta::Method::Accessor::Native::Writer::BEGIN@15 |
| 1 | 1 | 1 | 8µs | 84µs | Moose::Meta::Method::Accessor::Native::Writer::BEGIN@176 |
| 1 | 1 | 1 | 7µs | 36µs | Moose::Meta::Method::Accessor::Native::Writer::BEGIN@12 |
| 1 | 1 | 1 | 6µs | 92µs | Moose::Meta::Method::Accessor::Native::Writer::BEGIN@13 |
| 1 | 1 | 1 | 6µs | 16µs | Moose::Meta::Method::Accessor::Native::Writer::BEGIN@9 |
| 1 | 1 | 1 | 6µs | 9µs | Moose::Meta::Method::Accessor::Native::Writer::BEGIN@10 |
| 8 | 1 | 1 | 5µs | 5µs | Moose::Meta::Method::Accessor::Native::Writer::_inline_check_arguments |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Writer::__ANON__[:102] |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Writer::__ANON__[:107] |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Writer::__ANON__[:132] |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Writer::__ANON__[:142] |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Writer::_inline_coerce_new_values |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Writer::_inline_optimized_set_new_value |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Writer::_return_value |
| 0 | 0 | 0 | 0s | 0s | Moose::Meta::Method::Accessor::Native::Writer::_writer_value_needs_copy |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Moose::Meta::Method::Accessor::Native::Writer; | ||||
| 2 | # spent 9µs within Moose::Meta::Method::Accessor::Native::Writer::BEGIN@2 which was called:
# once (9µs+0s) by Module::Runtime::require_module at line 4 | ||||
| 3 | 1 | 4µs | $Moose::Meta::Method::Accessor::Native::Writer::AUTHORITY = 'cpan:STEVAN'; | ||
| 4 | 1 | 32µs | 1 | 9µs | } # spent 9µs making 1 call to Moose::Meta::Method::Accessor::Native::Writer::BEGIN@2 |
| 5 | { | ||||
| 6 | 2 | 700ns | $Moose::Meta::Method::Accessor::Native::Writer::VERSION = '2.1005'; | ||
| 7 | } | ||||
| 8 | |||||
| 9 | 2 | 22µs | 2 | 27µs | # spent 16µs (6+10) within Moose::Meta::Method::Accessor::Native::Writer::BEGIN@9 which was called:
# once (6µs+10µs) by Module::Runtime::require_module at line 9 # spent 16µs making 1 call to Moose::Meta::Method::Accessor::Native::Writer::BEGIN@9
# spent 10µs making 1 call to strict::import |
| 10 | 2 | 24µs | 2 | 12µs | # spent 9µs (6+3) within Moose::Meta::Method::Accessor::Native::Writer::BEGIN@10 which was called:
# once (6µs+3µs) by Module::Runtime::require_module at line 10 # spent 9µs making 1 call to Moose::Meta::Method::Accessor::Native::Writer::BEGIN@10
# spent 3µs making 1 call to warnings::import |
| 11 | |||||
| 12 | 2 | 26µs | 2 | 65µs | # spent 36µs (7+29) within Moose::Meta::Method::Accessor::Native::Writer::BEGIN@12 which was called:
# once (7µs+29µs) by Module::Runtime::require_module at line 12 # spent 36µs making 1 call to Moose::Meta::Method::Accessor::Native::Writer::BEGIN@12
# spent 29µs making 1 call to Exporter::import |
| 13 | 2 | 24µs | 2 | 179µs | # spent 92µs (6+86) within Moose::Meta::Method::Accessor::Native::Writer::BEGIN@13 which was called:
# once (6µs+86µs) by Module::Runtime::require_module at line 13 # spent 92µs making 1 call to Moose::Meta::Method::Accessor::Native::Writer::BEGIN@13
# spent 86µs making 1 call to Sub::Exporter::__ANON__[Sub/Exporter.pm:337] |
| 14 | |||||
| 15 | 2 | 730µs | 2 | 3.64ms | # spent 1.83ms (8µs+1.82) within Moose::Meta::Method::Accessor::Native::Writer::BEGIN@15 which was called:
# once (8µs+1.82ms) by Module::Runtime::require_module at line 15 # spent 1.83ms making 1 call to Moose::Meta::Method::Accessor::Native::Writer::BEGIN@15
# spent 1.82ms making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:519] |
| 16 | |||||
| 17 | 1 | 2µs | 1 | 5.04ms | with 'Moose::Meta::Method::Accessor::Native'; # spent 5.04ms making 1 call to Moose::Role::with |
| 18 | |||||
| 19 | 1 | 1µs | 1 | 49µs | requires '_potential_value'; # spent 49µs making 1 call to Moose::Role::requires |
| 20 | |||||
| 21 | # spent 9.22ms (108µs+9.11) within Moose::Meta::Method::Accessor::Native::Writer::_generate_method which was called 13 times, avg 709µs/call:
# 13 times (108µs+9.11ms) by Moose::Meta::Method::Accessor::Native::_initialize_body at line 57 of Moose/Meta/Method/Accessor/Native.pm, avg 709µs/call | ||||
| 22 | 13 | 1µs | my $self = shift; | ||
| 23 | |||||
| 24 | 13 | 2µs | my $inv = '$self'; | ||
| 25 | 13 | 15µs | 13 | 586µs | my $slot_access = $self->_get_value($inv); # spent 183µs making 4 calls to Moose::Meta::Class::__ANON__::SERIAL::6::_get_value, avg 46µs/call
# spent 176µs making 4 calls to Moose::Meta::Class::__ANON__::SERIAL::2::_get_value, avg 44µs/call
# spent 176µs making 4 calls to Moose::Meta::Class::__ANON__::SERIAL::3::_get_value, avg 44µs/call
# spent 52µs making 1 call to Moose::Meta::Class::__ANON__::SERIAL::8::_get_value |
| 26 | |||||
| 27 | return ( | ||||
| 28 | 13 | 52µs | 26 | 8.52ms | 'sub {', # spent 8.46ms making 13 calls to Moose::Meta::Method::Accessor::Native::Writer::_inline_writer_core, avg 651µs/call
# spent 65µs making 13 calls to Moose::Meta::Method::Accessor::Native::_inline_curried_arguments, avg 5µs/call |
| 29 | 'my ' . $inv . ' = shift;', | ||||
| 30 | $self->_inline_curried_arguments, | ||||
| 31 | $self->_inline_writer_core($inv, $slot_access), | ||||
| 32 | '}', | ||||
| 33 | ); | ||||
| 34 | } | ||||
| 35 | |||||
| 36 | # spent 8.46ms (615µs+7.84) within Moose::Meta::Method::Accessor::Native::Writer::_inline_writer_core which was called 13 times, avg 651µs/call:
# 13 times (615µs+7.84ms) by Moose::Meta::Method::Accessor::Native::Writer::_generate_method at line 28, avg 651µs/call | ||||
| 37 | 13 | 2µs | my $self = shift; | ||
| 38 | 13 | 4µs | my ($inv, $slot_access) = @_; | ||
| 39 | |||||
| 40 | 13 | 15µs | 13 | 28µs | my $potential = $self->_potential_value($slot_access); # spent 10µs making 4 calls to Moose::Meta::Method::Accessor::Native::Array::set::_potential_value, avg 3µs/call
# spent 8µs making 4 calls to Moose::Meta::Method::Accessor::Native::Array::push::_potential_value, avg 2µs/call
# spent 7µs making 4 calls to Moose::Meta::Method::Accessor::Native::Array::clear::_potential_value, avg 2µs/call
# spent 2µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::delete::_potential_value |
| 41 | 13 | 2µs | my $old = '@old'; | ||
| 42 | |||||
| 43 | 13 | 1µs | my @code; | ||
| 44 | 13 | 91µs | 52 | 4.94ms | push @code, ( # spent 2.87ms making 13 calls to Moose::Meta::Method::Accessor::_inline_check_lazy, avg 221µs/call
# spent 1.56ms making 13 calls to Moose::Meta::Method::Accessor::Native::_inline_check_argument_count, avg 120µs/call
# spent 394µs making 4 calls to Moose::Meta::Method::Accessor::Native::Array::set::_inline_check_arguments, avg 98µs/call
# spent 103µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::delete::_inline_check_arguments
# spent 9µs making 13 calls to Moose::Meta::Method::Accessor::Native::Writer::_inline_process_arguments, avg 662ns/call
# spent 5µs making 8 calls to Moose::Meta::Method::Accessor::Native::Writer::_inline_check_arguments, avg 588ns/call |
| 45 | $self->_inline_check_argument_count, | ||||
| 46 | $self->_inline_process_arguments($inv, $slot_access), | ||||
| 47 | $self->_inline_check_arguments('for writer'), | ||||
| 48 | $self->_inline_check_lazy($inv, '$type_constraint', '$type_coercion', '$type_message'), | ||||
| 49 | ); | ||||
| 50 | |||||
| 51 | 13 | 19µs | 13 | 23µs | if ($self->_return_value($slot_access)) { # spent 9µs making 4 calls to Moose::Meta::Method::Accessor::Native::Array::push::_return_value, avg 2µs/call
# spent 8µs making 4 calls to Moose::Meta::Method::Accessor::Native::Array::set::_return_value, avg 2µs/call
# spent 4µs making 4 calls to Moose::Meta::Method::Accessor::Native::Array::clear::_return_value, avg 1µs/call
# spent 2µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::delete::_return_value |
| 52 | # some writers will save the return value in this variable when they | ||||
| 53 | # generate the potential value. | ||||
| 54 | push @code, 'my @return;' | ||||
| 55 | } | ||||
| 56 | |||||
| 57 | 13 | 131µs | 104 | 2.85ms | push @code, ( # spent 621µs making 4 calls to Moose::Meta::Class::__ANON__::SERIAL::6::_inline_tc_code, avg 155µs/call
# spent 556µs making 4 calls to Moose::Meta::Class::__ANON__::SERIAL::3::_inline_tc_code, avg 139µs/call
# spent 522µs making 13 calls to Moose::Meta::Method::Accessor::Native::Writer::_inline_set_new_value, avg 40µs/call
# spent 413µs making 4 calls to Moose::Meta::Class::__ANON__::SERIAL::2::_inline_tc_code, avg 103µs/call
# spent 182µs making 1 call to Moose::Meta::Class::__ANON__::SERIAL::8::_inline_tc_code
# spent 145µs making 13 calls to Moose::Meta::Method::Accessor::Native::Writer::_inline_copy_native_value, avg 11µs/call
# spent 110µs making 13 calls to Moose::Meta::Method::Accessor::_inline_trigger, avg 8µs/call
# spent 103µs making 9 calls to Moose::Meta::Method::Accessor::Native::Array::Writer::_inline_coerce_new_values, avg 11µs/call
# spent 96µs making 13 calls to Moose::Meta::Method::Accessor::Native::Collection::_inline_get_old_value_for_trigger, avg 7µs/call
# spent 64µs making 13 calls to Moose::Meta::Method::Accessor::Native::_inline_return_value, avg 5µs/call
# spent 29µs making 4 calls to Moose::Meta::Method::Accessor::Native::Array::set::_inline_coerce_new_values, avg 7µs/call
# spent 9µs making 13 calls to Moose::Meta::Method::Accessor::Native::Writer::_inline_capture_return_value, avg 685ns/call |
| 58 | $self->_inline_coerce_new_values, | ||||
| 59 | $self->_inline_copy_native_value(\$potential), | ||||
| 60 | $self->_inline_tc_code($potential, '$type_constraint', '$type_coercion', '$type_message'), | ||||
| 61 | $self->_inline_get_old_value_for_trigger($inv, $old), | ||||
| 62 | $self->_inline_capture_return_value($slot_access), | ||||
| 63 | $self->_inline_set_new_value($inv, $potential, $slot_access), | ||||
| 64 | $self->_inline_trigger($inv, $slot_access, $old), | ||||
| 65 | $self->_inline_return_value($slot_access, 'for writer'), | ||||
| 66 | ); | ||||
| 67 | |||||
| 68 | 13 | 70µs | return @code; | ||
| 69 | } | ||||
| 70 | |||||
| 71 | 13 | 20µs | # spent 9µs within Moose::Meta::Method::Accessor::Native::Writer::_inline_process_arguments which was called 13 times, avg 662ns/call:
# 13 times (9µs+0s) by Moose::Meta::Method::Accessor::Native::Writer::_inline_writer_core at line 44, avg 662ns/call | ||
| 72 | |||||
| 73 | 8 | 11µs | # spent 5µs within Moose::Meta::Method::Accessor::Native::Writer::_inline_check_arguments which was called 8 times, avg 588ns/call:
# 8 times (5µs+0s) by Moose::Meta::Method::Accessor::Native::Writer::_inline_writer_core at line 44, avg 588ns/call | ||
| 74 | |||||
| 75 | sub _inline_coerce_new_values { return } | ||||
| 76 | |||||
| 77 | sub _writer_value_needs_copy { | ||||
| 78 | my $self = shift; | ||||
| 79 | |||||
| 80 | return $self->_constraint_must_be_checked; | ||||
| 81 | } | ||||
| 82 | |||||
| 83 | # spent 967µs (148+819) within Moose::Meta::Method::Accessor::Native::Writer::_constraint_must_be_checked which was called 17 times, avg 57µs/call:
# 13 times (119µs+650µs) by Class::MOP::Class:::around at line 129, avg 59µs/call
# 4 times (29µs+169µs) by Moose::Meta::Method::Accessor::Native::Collection::_inline_tc_code at line 61 of Moose/Meta/Method/Accessor/Native/Collection.pm, avg 49µs/call | ||||
| 84 | 17 | 1µs | my $self = shift; | ||
| 85 | |||||
| 86 | 17 | 10µs | 17 | 11µs | my $attr = $self->associated_attribute; # spent 11µs making 17 calls to Class::MOP::Method::Accessor::associated_attribute, avg 629ns/call |
| 87 | |||||
| 88 | 17 | 68µs | 60 | 809µs | return $attr->has_type_constraint # spent 765µs making 17 calls to Moose::Meta::Method::Accessor::Native::Writer::_is_root_type, avg 45µs/call
# spent 18µs making 17 calls to Moose::Meta::Mixin::AttributeCore::has_type_constraint, avg 1µs/call
# spent 16µs making 17 calls to Moose::Meta::Mixin::AttributeCore::type_constraint, avg 971ns/call
# spent 9µs making 9 calls to Moose::Meta::Mixin::AttributeCore::should_coerce, avg 1µs/call |
| 89 | && ( !$self->_is_root_type( $attr->type_constraint ) | ||||
| 90 | || ( $attr->should_coerce && $attr->type_constraint->has_coercion ) ); | ||||
| 91 | } | ||||
| 92 | |||||
| 93 | # spent 920µs (191+729) within Moose::Meta::Method::Accessor::Native::Writer::_is_root_type which was called 21 times, avg 44µs/call:
# 17 times (158µs+607µs) by Moose::Meta::Method::Accessor::Native::Writer::_constraint_must_be_checked at line 88, avg 45µs/call
# 4 times (33µs+122µs) by Moose::Meta::Method::Accessor::Native::Collection::_check_new_members_only at line 94 of Moose/Meta/Method/Accessor/Native/Collection.pm, avg 39µs/call | ||||
| 94 | 21 | 2µs | my $self = shift; | ||
| 95 | 21 | 2µs | my $type = shift; | ||
| 96 | |||||
| 97 | 21 | 14µs | 21 | 637µs | if ( # spent 637µs making 21 calls to Moose::Util::does_role, avg 30µs/call |
| 98 | Moose::Util::does_role( $type, 'Specio::Constraint::Role::Interface' ) ) | ||||
| 99 | { | ||||
| 100 | require Specio::Library::Builtins; | ||||
| 101 | return | ||||
| 102 | any { $type->is_same_type_as( Specio::Library::Builtins::t($_) ) } | ||||
| 103 | @{ $self->root_types }; | ||||
| 104 | } | ||||
| 105 | else { | ||||
| 106 | 21 | 20µs | 21 | 29µs | my $name = $type->name; # spent 29µs making 21 calls to Moose::Meta::TypeConstraint::name, avg 1µs/call |
| 107 | 42 | 149µs | 42 | 63µs | return any { $name eq $_ } @{ $self->root_types }; # spent 44µs making 21 calls to List::MoreUtils::any, avg 2µs/call
# spent 19µs making 21 calls to Moose::Meta::Method::Accessor::Native::root_types, avg 886ns/call |
| 108 | } | ||||
| 109 | } | ||||
| 110 | |||||
| 111 | # spent 145µs (44+101) within Moose::Meta::Method::Accessor::Native::Writer::_inline_copy_native_value which was called 13 times, avg 11µs/call:
# 13 times (44µs+101µs) by Moose::Meta::Method::Accessor::Native::Writer::_inline_writer_core at line 57, avg 11µs/call | ||||
| 112 | 13 | 2µs | my $self = shift; | ||
| 113 | 13 | 2µs | my ($potential_ref) = @_; | ||
| 114 | |||||
| 115 | 13 | 33µs | 13 | 101µs | return unless $self->_writer_value_needs_copy; # spent 101µs making 13 calls to Moose::Meta::Method::Accessor::_writer_value_needs_copy, avg 8µs/call |
| 116 | |||||
| 117 | my $code = 'my $potential = ' . ${$potential_ref} . ';'; | ||||
| 118 | |||||
| 119 | ${$potential_ref} = '$potential'; | ||||
| 120 | |||||
| 121 | return $code; | ||||
| 122 | } | ||||
| 123 | |||||
| 124 | around _inline_tc_code => sub { | ||||
| 125 | 13 | 2µs | my $orig = shift; | ||
| 126 | 13 | 600ns | my $self = shift; | ||
| 127 | 13 | 6µs | my ($value, $tc, $coercion, $message, $for_lazy) = @_; | ||
| 128 | |||||
| 129 | 13 | 28µs | 13 | 769µs | return unless $for_lazy || $self->_constraint_must_be_checked; # spent 769µs making 13 calls to Moose::Meta::Method::Accessor::Native::Writer::_constraint_must_be_checked, avg 59µs/call |
| 130 | |||||
| 131 | 4 | 10µs | 4 | 865µs | return $self->$orig(@_); # spent 865µs making 4 calls to Moose::Meta::Method::Accessor::Native::Collection::_inline_tc_code, avg 216µs/call |
| 132 | 1 | 3µs | 1 | 32µs | }; # spent 32µs making 1 call to Moose::Role::around |
| 133 | |||||
| 134 | around _inline_check_constraint => sub { | ||||
| 135 | my $orig = shift; | ||||
| 136 | my $self = shift; | ||||
| 137 | my ($value, $tc, $message, $for_lazy) = @_; | ||||
| 138 | |||||
| 139 | return unless $for_lazy || $self->_constraint_must_be_checked; | ||||
| 140 | |||||
| 141 | return $self->$orig(@_); | ||||
| 142 | 1 | 2µs | 1 | 30µs | }; # spent 30µs making 1 call to Moose::Role::around |
| 143 | |||||
| 144 | 13 | 18µs | # spent 9µs within Moose::Meta::Method::Accessor::Native::Writer::_inline_capture_return_value which was called 13 times, avg 685ns/call:
# 13 times (9µs+0s) by Moose::Meta::Method::Accessor::Native::Writer::_inline_writer_core at line 57, avg 685ns/call | ||
| 145 | |||||
| 146 | # spent 522µs (112+410) within Moose::Meta::Method::Accessor::Native::Writer::_inline_set_new_value which was called 13 times, avg 40µs/call:
# 13 times (112µs+410µs) by Moose::Meta::Method::Accessor::Native::Writer::_inline_writer_core at line 57, avg 40µs/call | ||||
| 147 | 13 | 1µs | my $self = shift; | ||
| 148 | |||||
| 149 | 13 | 30µs | 39 | 378µs | return $self->_inline_store_value(@_) # spent 168µs making 13 calls to Moose::Meta::Method::Accessor::Native::_slot_access_can_be_inlined, avg 13µs/call
# spent 114µs making 13 calls to Moose::Meta::Method::Accessor::Native::Writer::_get_is_lvalue, avg 9µs/call
# spent 96µs making 13 calls to Moose::Meta::Method::Accessor::_writer_value_needs_copy, avg 7µs/call |
| 150 | if $self->_writer_value_needs_copy | ||||
| 151 | || !$self->_slot_access_can_be_inlined | ||||
| 152 | || !$self->_get_is_lvalue; | ||||
| 153 | |||||
| 154 | 13 | 33µs | 13 | 32µs | return $self->_inline_optimized_set_new_value(@_); # spent 10µs making 4 calls to Moose::Meta::Method::Accessor::Native::Array::push::_inline_optimized_set_new_value, avg 2µs/call
# spent 10µs making 4 calls to Moose::Meta::Method::Accessor::Native::Array::clear::_inline_optimized_set_new_value, avg 2µs/call
# spent 9µs making 4 calls to Moose::Meta::Method::Accessor::Native::Array::set::_inline_optimized_set_new_value, avg 2µs/call
# spent 3µs making 1 call to Moose::Meta::Method::Accessor::Native::Array::delete::_inline_optimized_set_new_value |
| 155 | } | ||||
| 156 | |||||
| 157 | # spent 114µs (88+25) within Moose::Meta::Method::Accessor::Native::Writer::_get_is_lvalue which was called 13 times, avg 9µs/call:
# 13 times (88µs+25µs) by Moose::Meta::Method::Accessor::Native::Writer::_inline_set_new_value at line 149, avg 9µs/call | ||||
| 158 | 13 | 2µs | my $self = shift; | ||
| 159 | |||||
| 160 | 13 | 78µs | 52 | 25µs | return $self->associated_attribute->associated_class->instance_metaclass->inline_get_is_lvalue; # spent 8µs making 13 calls to Class::MOP::Instance::inline_get_is_lvalue, avg 631ns/call
# spent 8µs making 13 calls to Class::MOP::Method::Accessor::associated_attribute, avg 577ns/call
# spent 5µs making 13 calls to Class::MOP::Attribute::associated_class, avg 408ns/call
# spent 4µs making 13 calls to Class::MOP::Class::instance_metaclass, avg 331ns/call |
| 161 | } | ||||
| 162 | |||||
| 163 | sub _inline_optimized_set_new_value { | ||||
| 164 | my $self = shift; | ||||
| 165 | |||||
| 166 | return $self->_inline_store_value(@_); | ||||
| 167 | } | ||||
| 168 | |||||
| 169 | sub _return_value { | ||||
| 170 | my $self = shift; | ||||
| 171 | my ($slot_access) = @_; | ||||
| 172 | |||||
| 173 | return $slot_access; | ||||
| 174 | } | ||||
| 175 | |||||
| 176 | 2 | 34µs | 2 | 161µs | # spent 84µs (8+77) within Moose::Meta::Method::Accessor::Native::Writer::BEGIN@176 which was called:
# once (8µs+77µs) by Module::Runtime::require_module at line 176 # spent 84µs making 1 call to Moose::Meta::Method::Accessor::Native::Writer::BEGIN@176
# spent 77µs making 1 call to Moose::Exporter::__ANON__[Moose/Exporter.pm:706] |
| 177 | |||||
| 178 | 1 | 11µs | 1; |