← Index
NYTProf Performance Profile   « block view • line view • sub view »
For bin/pan_genome_post_analysis
  Run on Fri Mar 27 11:43:32 2015
Reported on Fri Mar 27 11:45:34 2015

Filename/Users/ap13/perl5/lib/perl5/darwin-2level/Class/MOP/Method/Accessor.pm
StatementsExecuted 9935 statements in 31.5ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
394229.70ms260msClass::MOP::Method::Accessor::::newClass::MOP::Method::Accessor::new
464335.45ms47.8msClass::MOP::Method::Accessor::::_newClass::MOP::Method::Accessor::_new
394114.25ms203msClass::MOP::Method::Accessor::::_initialize_bodyClass::MOP::Method::Accessor::_initialize_body
195222.84ms124msClass::MOP::Method::Accessor::::_generate_reader_method_inlineClass::MOP::Method::Accessor::_generate_reader_method_inline
7122914µs58.5msClass::MOP::Method::Accessor::::_generate_accessor_method_inlineClass::MOP::Method::Accessor::_generate_accessor_method_inline
19511589µs589µsClass::MOP::Method::Accessor::::_inline_throw_exceptionClass::MOP::Method::Accessor::_inline_throw_exception
5411498µs596µsClass::MOP::Method::Accessor::::_generate_reader_methodClass::MOP::Method::Accessor::_generate_reader_method
2322275µs5.79msClass::MOP::Method::Accessor::::_generate_predicate_method_inlineClass::MOP::Method::Accessor::_generate_predicate_method_inline
2111134µs157µsClass::MOP::Method::Accessor::::_generate_accessor_methodClass::MOP::Method::Accessor::_generate_accessor_method
811104µs2.94msClass::MOP::Method::Accessor::::_generate_clearer_method_inlineClass::MOP::Method::Accessor::_generate_clearer_method_inline
151192µs106µsClass::MOP::Method::Accessor::::_generate_predicate_methodClass::MOP::Method::Accessor::_generate_predicate_method
31146µs669µsClass::MOP::Method::Accessor::::_generate_writer_method_inlineClass::MOP::Method::Accessor::_generate_writer_method_inline
31125µs28µsClass::MOP::Method::Accessor::::_generate_writer_methodClass::MOP::Method::Accessor::_generate_writer_method
11121µs44µsClass::MOP::Method::Accessor::::BEGIN@4Class::MOP::Method::Accessor::BEGIN@4
11118µs25µsClass::MOP::Method::Accessor::::BEGIN@5Class::MOP::Method::Accessor::BEGIN@5
11115µs72µsClass::MOP::Method::Accessor::::BEGIN@8Class::MOP::Method::Accessor::BEGIN@8
11114µs7.05msClass::MOP::Method::Accessor::::BEGIN@10Class::MOP::Method::Accessor::BEGIN@10
11113µs62µsClass::MOP::Method::Accessor::::BEGIN@7Class::MOP::Method::Accessor::BEGIN@7
11110µs12µsClass::MOP::Method::Accessor::::_generate_clearer_methodClass::MOP::Method::Accessor::_generate_clearer_method
0000s0sClass::MOP::Method::Accessor::::__ANON__[:105]Class::MOP::Method::Accessor::__ANON__[:105]
0000s0sClass::MOP::Method::Accessor::::__ANON__[:121]Class::MOP::Method::Accessor::__ANON__[:121]
0000s0sClass::MOP::Method::Accessor::::__ANON__[:127]Class::MOP::Method::Accessor::__ANON__[:127]
0000s0sClass::MOP::Method::Accessor::::__ANON__[:142]Class::MOP::Method::Accessor::__ANON__[:142]
0000s0sClass::MOP::Method::Accessor::::__ANON__[:163]Class::MOP::Method::Accessor::__ANON__[:163]
0000s0sClass::MOP::Method::Accessor::::__ANON__[:169]Class::MOP::Method::Accessor::__ANON__[:169]
0000s0sClass::MOP::Method::Accessor::::__ANON__[:183]Class::MOP::Method::Accessor::__ANON__[:183]
0000s0sClass::MOP::Method::Accessor::::__ANON__[:196]Class::MOP::Method::Accessor::__ANON__[:196]
0000s0sClass::MOP::Method::Accessor::::__ANON__[:202]Class::MOP::Method::Accessor::__ANON__[:202]
0000s0sClass::MOP::Method::Accessor::::__ANON__[:211]Class::MOP::Method::Accessor::__ANON__[:211]
0000s0sClass::MOP::Method::Accessor::::__ANON__[:224]Class::MOP::Method::Accessor::__ANON__[:224]
0000s0sClass::MOP::Method::Accessor::::__ANON__[:230]Class::MOP::Method::Accessor::__ANON__[:230]
0000s0sClass::MOP::Method::Accessor::::__ANON__[:239]Class::MOP::Method::Accessor::__ANON__[:239]
0000s0sClass::MOP::Method::Accessor::::__ANON__[:252]Class::MOP::Method::Accessor::__ANON__[:252]
0000s0sClass::MOP::Method::Accessor::::__ANON__[:258]Class::MOP::Method::Accessor::__ANON__[:258]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package Class::MOP::Method::Accessor;
211µsour $VERSION = '2.1403';
3
4245µs268µs
# spent 44µs (21+24) within Class::MOP::Method::Accessor::BEGIN@4 which was called: # once (21µs+24µs) by Class::MOP::Class::BEGIN@9 at line 4
use strict;
# spent 44µs making 1 call to Class::MOP::Method::Accessor::BEGIN@4 # spent 24µs making 1 call to strict::import
5244µs232µs
# spent 25µs (18+7) within Class::MOP::Method::Accessor::BEGIN@5 which was called: # once (18µs+7µs) by Class::MOP::Class::BEGIN@9 at line 5
use warnings;
# spent 25µs making 1 call to Class::MOP::Method::Accessor::BEGIN@5 # spent 7µs making 1 call to warnings::import
6
7245µs2112µs
# spent 62µs (13+49) within Class::MOP::Method::Accessor::BEGIN@7 which was called: # once (13µs+49µs) by Class::MOP::Class::BEGIN@9 at line 7
use Scalar::Util 'blessed', 'weaken';
# spent 62µs making 1 call to Class::MOP::Method::Accessor::BEGIN@7 # spent 49µs making 1 call to Exporter::import
8243µs2129µs
# spent 72µs (15+57) within Class::MOP::Method::Accessor::BEGIN@8 which was called: # once (15µs+57µs) by Class::MOP::Class::BEGIN@9 at line 8
use Try::Tiny;
# spent 72µs making 1 call to Class::MOP::Method::Accessor::BEGIN@8 # spent 57µs making 1 call to Exporter::import
9
1021.73ms214.1ms
# spent 7.05ms (14µs+7.04) within Class::MOP::Method::Accessor::BEGIN@10 which was called: # once (14µs+7.04ms) by Class::MOP::Class::BEGIN@9 at line 10
use parent 'Class::MOP::Method::Generated';
# spent 7.05ms making 1 call to Class::MOP::Method::Accessor::BEGIN@10 # spent 7.04ms making 1 call to parent::import
11
12
# spent 260ms (9.70+250) within Class::MOP::Method::Accessor::new which was called 394 times, avg 659µs/call: # 207 times (5.53ms+217ms) by Class::MOP::Attribute::try {...} at line 16 of Moose/Meta/Method/Accessor.pm, avg 1.07ms/call # 187 times (4.17ms+33.1ms) by Class::MOP::Attribute::try {...} at line 407 of Class/MOP/Attribute.pm, avg 199µs/call
sub new {
1339409.79ms my $class = shift;
14 my %options = @_;
15
16 (exists $options{attribute})
17 || $class->_throw_exception( MustSupplyAnAttributeToConstructWith => params => \%options,
18 class => $class,
19 );
20
21 (exists $options{accessor_type})
22 || $class->_throw_exception( MustSupplyAnAccessorTypeToConstructWith => params => \%options,
23 class => $class,
24 );
25
26788742µs (blessed($options{attribute}) && $options{attribute}->isa('Class::MOP::Attribute'))
# spent 392µs making 394 calls to Scalar::Util::blessed, avg 995ns/call # spent 350µs making 394 calls to UNIVERSAL::isa, avg 887ns/call
27 || $class->_throw_exception( MustSupplyAClassMOPAttributeInstance => params => \%options,
28 class => $class
29 );
30
31 ($options{package_name} && $options{name})
32 || $class->_throw_exception( MustSupplyPackageNameAndName => params => \%options,
33 class => $class
34 );
35
363942.19ms my $self = $class->_new(\%options);
# spent 1.89ms making 187 calls to Class::MOP::Method::Accessor::_new, avg 10µs/call # spent 303µs making 207 calls to Moose::Meta::Method::Accessor::_new, avg 1µs/call
37
38 # we don't want this creating
39 # a cycle in the code, if not
40 # needed
41394484µs weaken($self->{'attribute'});
# spent 484µs making 394 calls to Scalar::Util::weaken, avg 1µs/call
42
43394203ms $self->_initialize_body;
# spent 203ms making 394 calls to Class::MOP::Method::Accessor::_initialize_body, avg 514µs/call
44
45 return $self;
46}
47
48
# spent 47.8ms (5.45+42.4) within Class::MOP::Method::Accessor::_new which was called 464 times, avg 103µs/call: # 207 times (1.50ms+42.4ms) by Class::MOP::Method::Accessor::new at line 20 of Moose/Meta/Method/Accessor.pm, avg 212µs/call # 187 times (1.89ms+0s) by Class::MOP::Method::Accessor::new at line 36, avg 10µs/call # 70 times (2.06ms+0s) by Class::MOP::Method::wrap at line 45 of Class/MOP/Method.pm, avg 29µs/call
sub _new {
4914425.37ms my $class = shift;
50
5141442.4ms return Class::MOP::Class->initialize($class)->new_object(@_)
# spent 40.6ms making 207 calls to Class::MOP::Class::new_object, avg 196µs/call # spent 1.75ms making 207 calls to Class::MOP::Class::initialize, avg 8µs/call
52 if $class ne __PACKAGE__;
53
54 my $params = @_ == 1 ? $_[0] : {@_};
55
56 return bless {
57 # inherited from Class::MOP::Method
58 body => $params->{body},
59 associated_metaclass => $params->{associated_metaclass},
60 package_name => $params->{package_name},
61 name => $params->{name},
62 original_method => $params->{original_method},
63
64 # inherit from Class::MOP::Generated
65 is_inline => $params->{is_inline} || 0,
66 definition_context => $params->{definition_context},
67
68 # defined in this class
69 attribute => $params->{attribute},
70 accessor_type => $params->{accessor_type},
71 } => $class;
72}
73
74## accessors
75
768081.92mssub associated_attribute { (shift)->{'attribute'} }
77394913µssub accessor_type { (shift)->{'accessor_type'} }
78
79## factory
80
81
# spent 203ms (4.25+198) within Class::MOP::Method::Accessor::_initialize_body which was called 394 times, avg 514µs/call: # 394 times (4.25ms+198ms) by Class::MOP::Method::Accessor::new at line 43, avg 514µs/call
sub _initialize_body {
8211824.01ms my $self = shift;
83
84788851µs my $method_name = join "_" => (
# spent 553µs making 394 calls to Class::MOP::Method::Accessor::accessor_type, avg 1µs/call # spent 298µs making 394 calls to Class::MOP::Method::Generated::is_inline, avg 756ns/call
85 '_generate',
86 $self->accessor_type,
87 'method',
88 ($self->is_inline ? 'inline' : ())
89 );
90
91394198ms $self->{'body'} = $self->$method_name();
# spent 111ms making 140 calls to Moose::Meta::Method::Accessor::_generate_reader_method, avg 790µs/call # spent 52.3ms making 50 calls to Moose::Meta::Method::Accessor::_generate_accessor_method, avg 1.05ms/call # spent 16.7ms making 55 calls to Class::MOP::Method::Accessor::_generate_reader_method_inline, avg 304µs/call # spent 7.42ms making 21 calls to Class::MOP::Method::Accessor::_generate_accessor_method_inline, avg 354µs/call # spent 3.10ms making 8 calls to Moose::Meta::Method::Accessor::_generate_clearer_method, avg 387µs/call # spent 3.08ms making 15 calls to Class::MOP::Method::Accessor::_generate_predicate_method_inline, avg 206µs/call # spent 2.87ms making 8 calls to Moose::Meta::Method::Accessor::_generate_predicate_method, avg 359µs/call # spent 669µs making 3 calls to Class::MOP::Method::Accessor::_generate_writer_method_inline, avg 223µs/call # spent 596µs making 54 calls to Class::MOP::Method::Accessor::_generate_reader_method, avg 11µs/call # spent 157µs making 21 calls to Class::MOP::Method::Accessor::_generate_accessor_method, avg 7µs/call # spent 106µs making 15 calls to Class::MOP::Method::Accessor::_generate_predicate_method, avg 7µs/call # spent 28µs making 3 calls to Class::MOP::Method::Accessor::_generate_writer_method, avg 9µs/call # spent 12µs making 1 call to Class::MOP::Method::Accessor::_generate_clearer_method
92}
93
94## generators
95
96
# spent 157µs (134+23) within Class::MOP::Method::Accessor::_generate_accessor_method which was called 21 times, avg 7µs/call: # 21 times (134µs+23µs) by Class::MOP::Method::Accessor::_initialize_body at line 91, avg 7µs/call
sub _generate_accessor_method {
9763116µs my $self = shift;
982123µs my $attr = $self->associated_attribute;
# spent 23µs making 21 calls to Class::MOP::Method::Accessor::associated_attribute, avg 1µs/call
99
100 return sub {
101 if (@_ >= 2) {
102 $attr->set_value($_[0], $_[1]);
103 }
104 $attr->get_value($_[0]);
105 };
106}
107
108
# spent 58.5ms (914µs+57.6) within Class::MOP::Method::Accessor::_generate_accessor_method_inline which was called 71 times, avg 824µs/call: # 50 times (636µs+50.4ms) by Moose::Meta::Method::Accessor::_generate_accessor_method at line 68 of Moose/Meta/Method/Accessor.pm, avg 1.02ms/call # 21 times (278µs+7.15ms) by Class::MOP::Method::Accessor::_initialize_body at line 91, avg 354µs/call
sub _generate_accessor_method_inline {
109213683µs my $self = shift;
1107176µs my $attr = $self->associated_attribute;
# spent 76µs making 71 calls to Class::MOP::Method::Accessor::associated_attribute, avg 1µs/call
111
112 return try {
11371600µs21354.5ms $self->_compile_code([
# spent 24.9ms making 50 calls to Moose::Meta::Method::Accessor::_compile_code, avg 499µs/call # spent 19.3ms making 50 calls to Moose::Meta::Attribute::_inline_set_value, avg 386µs/call # spent 3.95ms making 50 calls to Moose::Meta::Attribute::_inline_get_value, avg 79µs/call # spent 3.93ms making 21 calls to Class::MOP::Method::Generated::_compile_code, avg 187µs/call # spent 1.90ms making 21 calls to Class::MOP::Attribute::_inline_set_value, avg 90µs/call # spent 505µs making 21 calls to Class::MOP::Attribute::_inline_get_value, avg 24µs/call
114 'sub {',
115 'if (@_ > 1) {',
116 $attr->_inline_set_value('$_[0]', '$_[1]'),
117 '}',
118 $attr->_inline_get_value('$_[0]'),
119 '}',
120 ]);
121 }
122 catch {
123 $self->_throw_exception( CouldNotGenerateInlineAttributeMethod => instance => $self,
124 error => $_,
125 option => "accessor"
126 );
127142204µs };
# spent 204µs making 71 calls to Try::Tiny::catch, avg 3µs/call # spent 57.3ms making 71 calls to Try::Tiny::try, avg 807µs/call, recursion: max depth 2, sum of overlapping time 57.3ms
128}
129
130
# spent 596µs (498+98) within Class::MOP::Method::Accessor::_generate_reader_method which was called 54 times, avg 11µs/call: # 54 times (498µs+98µs) by Class::MOP::Method::Accessor::_initialize_body at line 91, avg 11µs/call
sub _generate_reader_method {
131216475µs my $self = shift;
1325466µs my $attr = $self->associated_attribute;
# spent 66µs making 54 calls to Class::MOP::Method::Accessor::associated_attribute, avg 1µs/call
1335432µs my $class = $attr->associated_class;
# spent 32µs making 54 calls to Class::MOP::Attribute::associated_class, avg 593ns/call
134
135 return sub {
1362451µs $self->_throw_exception( CannotAssignValueToReadOnlyAccessor => class_name => $class->name,
137 value => $_[1],
138 attribute => $attr
139 )
140 if @_ > 1;
14112357µs $attr->get_value($_[0]);
# spent 357µs making 12 calls to Class::MOP::Attribute::get_value, avg 30µs/call
142 };
143}
144
145
# spent 124ms (2.84+121) within Class::MOP::Method::Accessor::_generate_reader_method_inline which was called 195 times, avg 638µs/call: # 140 times (2.04ms+106ms) by Moose::Meta::Method::Accessor::_generate_reader_method at line 56 of Moose/Meta/Method/Accessor.pm, avg 769µs/call # 55 times (800µs+15.9ms) by Class::MOP::Method::Accessor::_initialize_body at line 91, avg 304µs/call
sub _generate_reader_method_inline {
1467802.38ms my $self = shift;
147195194µs my $attr = $self->associated_attribute;
# spent 194µs making 195 calls to Class::MOP::Method::Accessor::associated_attribute, avg 995ns/call
148195113µs my $attr_name = $attr->name;
# spent 113µs making 195 calls to Class::MOP::Mixin::AttributeCore::name, avg 581ns/call
149
150 return try {
1511951.92ms585113ms $self->_compile_code([
# spent 61.4ms making 141 calls to Moose::Meta::Method::Accessor::_compile_code, avg 436µs/call # spent 37.9ms making 141 calls to Moose::Meta::Attribute::_inline_get_value, avg 269µs/call # spent 10.0ms making 54 calls to Class::MOP::Method::Generated::_compile_code, avg 186µs/call # spent 3.12ms making 54 calls to Class::MOP::Attribute::_inline_get_value, avg 58µs/call # spent 589µs making 195 calls to Class::MOP::Method::Accessor::_inline_throw_exception, avg 3µs/call
152 'sub {',
153 'if (@_ > 1) {',
154 $self->_inline_throw_exception( CannotAssignValueToReadOnlyAccessor =>
155 'class_name => ref $_[0],'.
156 'value => $_[1],'.
157 "attribute_name => '".$attr_name."'",
158 ) . ';',
159 '}',
160 $attr->_inline_get_value('$_[0]'),
161 '}',
162 ]);
163 }
164 catch {
165 $self->_throw_exception( CouldNotGenerateInlineAttributeMethod => instance => $self,
166 error => $_,
167 option => "reader"
168 );
169390536µs };
# spent 536µs making 195 calls to Try::Tiny::catch, avg 3µs/call # spent 121ms making 195 calls to Try::Tiny::try, avg 619µs/call, recursion: max depth 2, sum of overlapping time 121ms
170}
171
172
# spent 589µs within Class::MOP::Method::Accessor::_inline_throw_exception which was called 195 times, avg 3µs/call: # 195 times (589µs+0s) by Class::MOP::Method::Accessor::try {...} at line 151, avg 3µs/call
sub _inline_throw_exception {
173390750µs my ( $self, $exception_type, $throw_args ) = @_;
174 return 'die Module::Runtime::use_module("Moose::Exception::' . $exception_type . '")->new(' . ($throw_args || '') . ')';
175}
176
177
# spent 28µs (25+3) within Class::MOP::Method::Accessor::_generate_writer_method which was called 3 times, avg 9µs/call: # 3 times (25µs+3µs) by Class::MOP::Method::Accessor::_initialize_body at line 91, avg 9µs/call
sub _generate_writer_method {
178923µs my $self = shift;
17933µs my $attr = $self->associated_attribute;
# spent 3µs making 3 calls to Class::MOP::Method::Accessor::associated_attribute, avg 1µs/call
180
181 return sub {
182 $attr->set_value($_[0], $_[1]);
183 };
184}
185
186
# spent 669µs (46+623) within Class::MOP::Method::Accessor::_generate_writer_method_inline which was called 3 times, avg 223µs/call: # 3 times (46µs+623µs) by Class::MOP::Method::Accessor::_initialize_body at line 91, avg 223µs/call
sub _generate_writer_method_inline {
187934µs my $self = shift;
18833µs my $attr = $self->associated_attribute;
# spent 3µs making 3 calls to Class::MOP::Method::Accessor::associated_attribute, avg 1µs/call
189
190 return try {
191316µs6525µs $self->_compile_code([
# spent 451µs making 3 calls to Class::MOP::Method::Generated::_compile_code, avg 150µs/call # spent 73µs making 3 calls to Class::MOP::Attribute::_inline_set_value, avg 24µs/call
192 'sub {',
193 $attr->_inline_set_value('$_[0]', '$_[1]'),
194 '}',
195 ]);
196 }
197 catch {
198 $self->_throw_exception( CouldNotGenerateInlineAttributeMethod => instance => $self,
199 error => $_,
200 option => "writer"
201 );
20268µs };
# spent 8µs making 3 calls to Try::Tiny::catch, avg 3µs/call # spent 612µs making 3 calls to Try::Tiny::try, avg 204µs/call, recursion: max depth 1, sum of overlapping time 612µs
203}
204
205
# spent 106µs (92+15) within Class::MOP::Method::Accessor::_generate_predicate_method which was called 15 times, avg 7µs/call: # 15 times (92µs+15µs) by Class::MOP::Method::Accessor::_initialize_body at line 91, avg 7µs/call
sub _generate_predicate_method {
2064579µs my $self = shift;
2071515µs my $attr = $self->associated_attribute;
# spent 15µs making 15 calls to Class::MOP::Method::Accessor::associated_attribute, avg 980ns/call
208
209 return sub {
2101240µs12299µs $attr->has_value($_[0])
# spent 299µs making 12 calls to Class::MOP::Attribute::has_value, avg 25µs/call
211 };
212}
213
214
# spent 5.79ms (275µs+5.51) within Class::MOP::Method::Accessor::_generate_predicate_method_inline which was called 23 times, avg 252µs/call: # 15 times (176µs+2.91ms) by Class::MOP::Method::Accessor::_initialize_body at line 91, avg 206µs/call # 8 times (99µs+2.60ms) by Moose::Meta::Method::Accessor::_generate_predicate_method at line 74 of Moose/Meta/Method/Accessor.pm, avg 338µs/call
sub _generate_predicate_method_inline {
21569206µs my $self = shift;
2162322µs my $attr = $self->associated_attribute;
# spent 22µs making 23 calls to Class::MOP::Method::Accessor::associated_attribute, avg 978ns/call
217
218 return try {
21923115µs464.78ms $self->_compile_code([
# spent 2.14ms making 8 calls to Moose::Meta::Method::Accessor::_compile_code, avg 268µs/call # spent 2.06ms making 15 calls to Class::MOP::Method::Generated::_compile_code, avg 137µs/call # spent 579µs making 23 calls to Class::MOP::Attribute::_inline_has_value, avg 25µs/call
220 'sub {',
221 $attr->_inline_has_value('$_[0]'),
222 '}',
223 ]);
224 }
225 catch {
226 $self->_throw_exception( CouldNotGenerateInlineAttributeMethod => instance => $self,
227 error => $_,
228 option => "predicate"
229 );
2304658µs };
# spent 58µs making 23 calls to Try::Tiny::catch, avg 3µs/call # spent 5.43ms making 23 calls to Try::Tiny::try, avg 236µs/call, recursion: max depth 2, sum of overlapping time 5.43ms
231}
232
233
# spent 12µs (10+2) within Class::MOP::Method::Accessor::_generate_clearer_method which was called: # once (10µs+2µs) by Class::MOP::Method::Accessor::_initialize_body at line 91
sub _generate_clearer_method {
23437µs my $self = shift;
23512µs my $attr = $self->associated_attribute;
236
237 return sub {
238 $attr->clear_value($_[0])
239 };
240}
241
242
# spent 2.94ms (104µs+2.83) within Class::MOP::Method::Accessor::_generate_clearer_method_inline which was called 8 times, avg 367µs/call: # 8 times (104µs+2.83ms) by Moose::Meta::Method::Accessor::_generate_clearer_method at line 80 of Moose/Meta/Method/Accessor.pm, avg 367µs/call
sub _generate_clearer_method_inline {
2432484µs my $self = shift;
24487µs my $attr = $self->associated_attribute;
# spent 7µs making 8 calls to Class::MOP::Method::Accessor::associated_attribute, avg 862ns/call
245
246 return try {
247850µs162.55ms $self->_compile_code([
# spent 2.34ms making 8 calls to Moose::Meta::Method::Accessor::_compile_code, avg 292µs/call # spent 212µs making 8 calls to Class::MOP::Attribute::_inline_clear_value, avg 26µs/call
248 'sub {',
249 $attr->_inline_clear_value('$_[0]'),
250 '}',
251 ]);
252 }
253 catch {
254 $self->_throw_exception( CouldNotGenerateInlineAttributeMethod => instance => $self,
255 error => $_,
256 option => "clearer"
257 );
2581620µs };
# spent 20µs making 8 calls to Try::Tiny::catch, avg 2µs/call # spent 2.80ms making 8 calls to Try::Tiny::try, avg 351µs/call, recursion: max depth 2, sum of overlapping time 2.80ms
259}
260
26115µs1;
262
263# ABSTRACT: Method Meta Object for accessors
264
265__END__